PHP Class Horde_View_Helper_Benchmark, horde

Example: benchmark('Notes section') ?> expensiveNotesOperation() ?> end() ?> Will add something like "Notes section (0.34523)" to the log. You may give an optional logger level as the second argument ('debug', 'info', 'warn', 'error'). The default is 'info'. The level may also be given as a Horde_Log::* constant.
Author: Mike Naberezny ([email protected])
Author: Derek DeVries ([email protected])
Author: Chuck Hagenbuch ([email protected])
Inheritance: extends Horde_View_Helper_Base
Show file Open project: horde/horde

Public Methods

Method Description
benchmark ( string $message = 'Benchmarking', string | integer $level = 'info' ) : Horde_View_Helper_Benchmark_Timer Starts a new benchmark.

Method Details

benchmark() public method

Starts a new benchmark.
public benchmark ( string $message = 'Benchmarking', string | integer $level = 'info' ) : Horde_View_Helper_Benchmark_Timer
$message string Message to log after the benchmark has ended.
$level string | integer Log level to log after the benchmark has ended.
return Horde_View_Helper_Benchmark_Timer A benchmark timer object.