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.
Mostrar archivo
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
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. |