Profiler
in package
Table of Contents
- $count : mixed
- $cur_timer : mixed
- $description : mixed
- $endTime : mixed
- $initTime : mixed
- $running : mixed
- $stack : mixed
- $startTime : mixed
- $trace : mixed
- $trail : mixed
- $output_enabled : bool
- $trace_enabled : bool
- __construct() : mixed
- Initialise the timer. with the current micro time
- __resumeTimer() : mixed
- resume an individual timer
- __suspendTimer() : mixed
- suspend an individual timer
- elapsedOverall() : mixed
- Measure the elapsed time since the profile class was initialised
- elapsedTime() : int|mixed
- measure the elapsed time of a timer without stoping the timer if it is still running
- getMicroTime() : mixed
- Get the current time as accuratly as possible
- printTimers() : mixed
- print out a log of all the timers that were registered
- printTrace() : mixed
- startTimer() : mixed
- Start an individual timer This will pause the running timer and place it on a stack.
- stopTimer() : mixed
- Stop an individual timer Restart the timer that was running before this one
Properties
$count
public
mixed
$count
$cur_timer
public
mixed
$cur_timer
$description
public
mixed
$description
$endTime
public
mixed
$endTime
$initTime
public
mixed
$initTime
$running
public
mixed
$running
$stack
public
mixed
$stack
$startTime
public
mixed
$startTime
$trace
public
mixed
$trace
$trail
public
mixed
$trail
$output_enabled
private
bool
$output_enabled
$trace_enabled
private
bool
$trace_enabled
Methods
__construct()
Initialise the timer. with the current micro time
public
__construct([bool $output_enabled = false ][, bool $trace_enabled = false ]) : mixed
Parameters
- $output_enabled : bool = false
- $trace_enabled : bool = false
Return values
mixed —__resumeTimer()
resume an individual timer
public
__resumeTimer( $name) : mixed
Parameters
Return values
mixed —__suspendTimer()
suspend an individual timer
public
__suspendTimer( $name) : mixed
Parameters
Return values
mixed —elapsedOverall()
Measure the elapsed time since the profile class was initialised
public
elapsedOverall() : mixed
Return values
mixed —elapsedTime()
measure the elapsed time of a timer without stoping the timer if it is still running
public
elapsedTime( $name) : int|mixed
Parameters
Return values
int|mixed —getMicroTime()
Get the current time as accuratly as possible
public
getMicroTime() : mixed
Return values
mixed —printTimers()
print out a log of all the timers that were registered
public
printTimers([bool $enabled = false ]) : mixed
Parameters
- $enabled : bool = false
Return values
mixed —printTrace()
public
printTrace([bool $enabled = false ]) : mixed
Parameters
- $enabled : bool = false
Return values
mixed —startTimer()
Start an individual timer This will pause the running timer and place it on a stack.
public
startTimer(string $name[, mixed $desc = "" ]) : mixed
Parameters
- $name : string
-
name of the timer
- $desc : mixed = ""
Return values
mixed —stopTimer()
Stop an individual timer Restart the timer that was running before this one
public
stopTimer(string $name) : mixed
Parameters
- $name : string
-
name of the timer