Library profiler

Profiler library for recording execution time.

Functions

pop() Pops a profiler state.
push( name ) Pushes a new profiler state.
swap( name ) Performs a pop and a push simultaneously, without discarding the starting time of the last state.


Functions

profiler.pop()
Pops a profiler state.

Environment:

Shared
profiler.push( name )
Pushes a new profiler state. Execution time will be measured from this point until popping.

Environment:

Shared

Parameters:

  • name: The name of the new state.
profiler.swap( name )
Performs a pop and a push simultaneously, without discarding the starting time of the last state. Thus, the new state starts from the old state's ending time and the old state stops here.

Environment:

Shared

Parameters:

  • name: The name of the new state.

Valid XHTML 1.0!