Profiler deprecated
class Profiler (View source)
deprecated
Execution time profiler.
Properties
$description | |||
$startTime | |||
$endTime | |||
$initTime | |||
$cur_timer | |||
$stack | |||
$trail | |||
$trace | |||
$count | |||
$running |
Methods
Initialise the timer. with the current micro time
No description
No description
No description
No description
Start an individual timer This will pause the running timer and place it on a stack.
Stop an individual timer Restart the timer that was running before this one
measure the elapsed time of a timer without stoping the timer if it is still running
Measure the elapsed time since the profile class was initialised
print out a log of all the timers that were registered
No description
Get the current time as accuratly as possible
resume an individual timer
suspend an individual timer
Details
__construct($output_enabled = false, $trace_enabled = false)
Initialise the timer. with the current micro time
static
init()
static
mark($name, $level2 = "", $desc = "")
static
unmark($name, $level2 = "", $desc = "")
static
show($showTrace = false)
startTimer($name, $desc = "")
Start an individual timer This will pause the running timer and place it on a stack.
@param string $name name of the timer
stopTimer($name)
Stop an individual timer Restart the timer that was running before this one
@param string $name name of the timer
elapsedTime($name)
measure the elapsed time of a timer without stoping the timer if it is still running
elapsedOverall()
Measure the elapsed time since the profile class was initialised
printTimers($enabled = false)
print out a log of all the timers that were registered
printTrace($enabled = false)
getMicroTime()
Get the current time as accuratly as possible
__resumeTimer($name)
resume an individual timer
__suspendTimer($name)
suspend an individual timer