Profiler - staffcheck/api GitHub Wiki
- Class name: Profiler
- Namespace:
public mixed $description
- Visibility: public
public mixed $startTime
- Visibility: public
public mixed $endTime
- Visibility: public
public mixed $initTime
- Visibility: public
public mixed $cur_timer
- Visibility: public
public mixed $stack
- Visibility: public
public mixed $trail
- Visibility: public
public mixed $trace
- Visibility: public
public mixed $count
- Visibility: public
public mixed $running
- Visibility: public
mixed Profiler::__construct($output_enabled, $trace_enabled)
Initialise the timer. with the current micro time
- Visibility: public
- $output_enabled mixed
- $trace_enabled mixed
mixed Profiler::startTimer(string $name, string $desc)
Start an individual timer This will pause the running timer and place it on a stack.
- Visibility: public
- $name string - name of the timer
- $desc string - optional $desc description of the timer
mixed Profiler::stopTimer(string $name)
Stop an individual timer Restart the timer that was running before this one
- Visibility: public
- $name string - name of the timer
mixed Profiler::elapsedTime($name)
measure the elapsed time of a timer without stoping the timer if it is still running
- Visibility: public
- $name mixed
mixed Profiler::elapsedOverall()
Measure the elapsed time since the profile class was initialised
- Visibility: public
mixed Profiler::printTimers($enabled)
print out a log of all the timers that were registered
- Visibility: public
- $enabled mixed
mixed Profiler::printTrace(boolean $enabled)
- Visibility: public
- $enabled boolean
mixed Profiler::getMicroTime()
Get the current time as accuratly as possible
- Visibility: public
mixed Profiler::__resumeTimer($name)
resume an individual timer
- Visibility: public
- $name mixed
mixed Profiler::__suspendTimer($name)
suspend an individual timer
- Visibility: public
- $name mixed