Profiler
extends AbstractProfiler
in package
MySQL database adapter profiler class
Tags
Table of Contents
Properties
- $current : Step|null
- $currentIndex : int
- Profiler current step index
- $debugger : DebuggerInterface|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() : DebuggerInterface|null
- Get debugger (alias)
- finish() : AbstractProfiler
- Finish profiler
- getCurrentStep() : Step|null
- Get current step
- getDebugger() : DebuggerInterface|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 read-only
public
Step|null
$current
Current step
$currentIndex
Profiler current step index
protected
int
$currentIndex
= 0
$debugger
Debugger
protected
DebuggerInterface|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([DebuggerInterface|null $debugger = null ]) : mixed
Instantiate the profiler object
Parameters
- $debugger : DebuggerInterface|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() : DebuggerInterface|null
Return values
DebuggerInterface|nullfinish()
Finish profiler
public
finish() : AbstractProfiler
Return values
AbstractProfilergetCurrentStep()
Get current step
public
getCurrentStep() : Step|null
Return values
Step|nullgetDebugger()
Get debugger
public
getDebugger() : DebuggerInterface|null
Return values
DebuggerInterface|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(DebuggerInterface $debugger) : Profiler
Parameters
- $debugger : DebuggerInterface