Interface Phalcon\ProfilerInterface

Source on GitHub

Phalcon\ProfilerInterface initializer


abstract public Phalcon\ProfilerInterface startProfile (string $name, [array $data])

Starts the profile

abstract public Phalcon\ProfilerInterface stopProfile ([string $name])

Stops the active profile

abstract public double getTotalElapsedSeconds ()

Returns the total time in seconds spent by the profiles

abstract public int getTotalUsageMemory ()

Returns the amount of memory allocated spent by the profiles

abstract public Phalcon\Profiler\ItemInterface[] getProfiles ()

Returns all the processed profiles

abstract public Phalcon\Profiler\ItemInterface getLastProfile ()

Returns the last profile executed in the profiler

abstract public Phalcon\ProfilerInterface reset ()

Resets the profiler, cleaning up all the profiles