Profiler deprecated
class Profiler
deprecated 4.0 The Profiler class is deprecated, use third party tools like XHProf instead
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
at line 35
__construct($output_enabled = false, $trace_enabled = false)
Initialise the timer. with the current micro time
at line 55
static
init()
at line 60
static
mark($name, $level2 = "", $desc = "")
at line 67
static
unmark($name, $level2 = "", $desc = "")
at line 74
static
show($showTrace = false)
at line 92
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
at line 110
stopTimer($name)
Stop an individual timer Restart the timer that was running before this one
@param string $name name of the timer
at line 125
elapsedTime($name)
measure the elapsed time of a timer without stoping the timer if it is still running
at line 142
elapsedOverall()
Measure the elapsed time since the profile class was initialised
at line 151
printTimers($enabled = false)
print out a log of all the timers that were registered
at line 197
printTrace($enabled = false)
at line 212
getMicroTime()
Get the current time as accuratly as possible
at line 222
__resumeTimer($name)
resume an individual timer
at line 231
__suspendTimer($name)
suspend an individual timer