Profiler deprecated
class Profiler (View source)
deprecated
Execution time profiler.
Properties
public | $description | |||
public | $startTime | |||
public | $endTime | |||
public | $initTime | |||
public | $cur_timer | |||
public | $stack | |||
public | $trail | |||
public | $trace | |||
public | $count | |||
public | $running | |||
protected static | $inst |
Methods
Initialise the timer. with the current micro time
Start an individual timer This will pause the running timer and place it on a stack.
measure the elapsed time of a timer without stoping the timer if it is still running
Details
__construct($output_enabled = false, $trace_enabled = false)
Initialise the timer. with the current micro time
static
init()
No description
static
mark($name, $level2 = "", $desc = "")
No description
static
unmark($name, $level2 = "", $desc = "")
No description
static
show($showTrace = false)
No description
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)
No description
getMicroTime()
Get the current time as accuratly as possible
__resumeTimer($name)
resume an individual timer
__suspendTimer($name)
suspend an individual timer