Profiler
extends AbstractProfiler
in package
MySQL database adapter profiler class
Tags
Table of Contents
- $current : int
- Profiler current index
- $finish : float
- Step finish time
- $start : float
- Step start time
- $steps : array<string|int, mixed>
- Profiler steps
- __construct() : mixed
- Constructor
- __get() : mixed
- Magic method to support shorthand calls to certain values in the profiler
- addStep() : Profiler
- Add step
- finish() : AbstractProfiler
- Finish profiler
- getCurrentStep() : Step
- Get current step
- getElapsed() : string
- Get elapsed time
- getFinish() : float
- Get finish
- getStart() : float
- Get start
- getSteps() : array<string|int, mixed>
- Get steps
Properties
$current
Profiler current index
protected
int
$current
= 0
$finish
Step finish time
protected
float
$finish
= null
$start
Step start time
protected
float
$start
= null
$steps
Profiler steps
protected
array<string|int, mixed>
$steps
= []
Methods
__construct()
Constructor
public
__construct() : mixed
Instantiate the profiler object
Return values
mixed —__get()
Magic method to support shorthand calls to certain values in the profiler
public
__get(string $name) : mixed
Parameters
- $name : string
Return values
mixed —addStep()
Add step
public
addStep([Step $step = null ]) : Profiler
Parameters
- $step : Step = null
Return values
Profiler —finish()
Finish profiler
public
finish() : AbstractProfiler
Return values
AbstractProfiler —getCurrentStep()
Get current step
public
getCurrentStep() : Step
Return values
Step —getElapsed()
Get elapsed time
public
getElapsed() : string
Return values
string —getFinish()
Get finish
public
getFinish() : float
Return values
float —getStart()
Get start
public
getStart() : float
Return values
float —getSteps()
Get steps
public
getSteps() : array<string|int, mixed>