PHP 클래스 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.
파일 보기
프로젝트 열기: horde/horde
공개 메소드들
메소드 |
설명 |
|
benchmark ( string $message = 'Benchmarking', string | integer $level = 'info' ) : Horde_View_Helper_Benchmark_Timer |
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. |
리턴 |
Horde_View_Helper_Benchmark_Timer |
A benchmark timer object. |