Class Horde_View_Helper_Benchmark
Measures the execution time of a block in a template and reports the result to the log.
Example:
<?php $bench = $this->benchmark('Notes section') ?> <?php echo $this->expensiveNotesOperation() ?> <?php $bench->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_View_Helper_Base
- Horde_View_Helper_Benchmark
Package: View\Helper
Category: Horde
License: http://www.horde.org/licenses/bsd
Author: Mike Naberezny mike@maintainable.com
Author: Derek DeVries derek@maintainable.com
Author: Chuck Hagenbuch chuck@horde.org
Located at Horde/View/Helper/Benchmark.php
Category: Horde
License: http://www.horde.org/licenses/bsd
Author: Mike Naberezny mike@maintainable.com
Author: Derek DeVries derek@maintainable.com
Author: Chuck Hagenbuch chuck@horde.org
Located at Horde/View/Helper/Benchmark.php
public
|
__call(),
__construct(),
__get(),
__set()
|