This helper offers a method to measure the execution time of a block in a template.
| Public Methods | |
|---|---|
| benchmark | Allows you to measure the execution time of a block in a template and records the result to the log. Wrap this block around expensive operations or possible bottlenecks to get a time reading for the operation. For example, let’s say you thought your file processing method was taking too long; you could wrap it in a benchmark block. |
<code/>and<pre/>for code samples.