Documentation

Profiler extends AbstractProfiler
in package

MySQL database adapter profiler class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

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

version
6.5.0

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

$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

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