Documentation

Profiler extends AbstractProfiler
in package

MySQL database adapter profiler class

Tags
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
7.0.0

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

$currentIndex

Profiler current step index

protected int $currentIndex = 0

$steps

Profiler steps

protected array<string|int, mixed> $steps = []

Methods

__get()

Magic method to support shorthand calls to certain values in the profiler

public __get(string $name) : mixed
Parameters
$name : string

getCurrentStep()

Get current step

public getCurrentStep() : Step|null
Return values
Step|null

getElapsed()

Get elapsed time

public getElapsed() : string
Return values
string

getFinish()

Get finish

public getFinish() : float|null
Return values
float|null

getStart()

Get start

public getStart() : float|null
Return values
float|null

getSteps()

Get steps

public getSteps() : array<string|int, mixed>
Return values
array<string|int, mixed>

hasDebugger()

Has debugger

public hasDebugger() : bool
Return values
bool

        
On this page

Search results