Profiler
extends AbstractProfiler
in package
MySQL database adapter profiler class
Tags
Table of Contents
Properties
- $current : int
- Profiler current index
- $debugger : Debugger|null
- Debugger
- $finish : float|null
- Step finish time
- $start : float|null
- Step start time
- $steps : array<string|int, mixed>
- Profiler steps
Methods
- __construct() : mixed
- Constructor
- __get() : mixed
- Magic method to support shorthand calls to certain values in the profiler
- addStep() : Profiler
- Add step
- debugger() : Debugger|null
- Get debugger (alias)
- finish() : AbstractProfiler
- Finish profiler
- getCurrentStep() : Step|null
- Get current step
- getDebugger() : Debugger|null
- Get debugger
- getElapsed() : string
- Get elapsed time
- getFinish() : float|null
- Get finish
- getStart() : float|null
- Get start
- getSteps() : array<string|int, mixed>
- Get steps
- hasDebugger() : bool
- Has debugger
- setDebugger() : Profiler
- Set debugger
Properties
$current
Profiler current index
protected
int
$current
= 0
$debugger
Debugger
protected
Debugger|null
$debugger
= null
$finish
Step finish time
protected
float|null
$finish
= null
$start
Step start time
protected
float|null
$start
= null
$steps
Profiler steps
protected
array<string|int, mixed>
$steps
= []
Methods
__construct()
Constructor
public
__construct([Debugger|null $debugger = null ]) : mixed
Instantiate the profiler object
Parameters
- $debugger : Debugger|null = null
__get()
Magic method to support shorthand calls to certain values in the profiler
public
__get(string $name) : mixed
Parameters
- $name : string
addStep()
Add step
public
addStep([Step|null $step = null ]) : Profiler
Parameters
- $step : Step|null = null
Return values
Profilerdebugger()
Get debugger (alias)
public
debugger() : Debugger|null
Return values
Debugger|nullfinish()
Finish profiler
public
finish() : AbstractProfiler
Return values
AbstractProfilergetCurrentStep()
Get current step
public
getCurrentStep() : Step|null
Return values
Step|nullgetDebugger()
Get debugger
public
getDebugger() : Debugger|null
Return values
Debugger|nullgetElapsed()
Get elapsed time
public
getElapsed() : string
Return values
stringgetFinish()
Get finish
public
getFinish() : float|null
Return values
float|nullgetStart()
Get start
public
getStart() : float|null
Return values
float|nullgetSteps()
Get steps
public
getSteps() : array<string|int, mixed>
Return values
array<string|int, mixed>hasDebugger()
Has debugger
public
hasDebugger() : bool
Return values
boolsetDebugger()
Set debugger
public
setDebugger(Debugger $debugger) : Profiler
Parameters
- $debugger : Debugger