Skip to content

Profiler

Class Profiler

Methods

isEnabled

Check if the profiler is currently enabled or not from the config

public isEnabled(): bool

beforeQuery

Start the current profile if profiler is enabled

public beforeQuery(\Phalcon\Events\EventInterface $event, \Phalcon\Db\Adapter\AbstractAdapter $connection): void

Parameters:

Parameter Type Description
$event \Phalcon\Events\EventInterface
$connection \Phalcon\Db\Adapter\AbstractAdapter

afterQuery

Stop the current profile

public afterQuery(\Phalcon\Events\EventInterface $event, \Phalcon\Db\Adapter\AbstractAdapter $connection): void

Parameters:

Parameter Type Description
$event \Phalcon\Events\EventInterface
$connection \Phalcon\Db\Adapter\AbstractAdapter