From e334c472fb4be44feec3a73402fc4a2b062cbfc0 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 21 Oct 2006 19:44:22 +0000 Subject: --- user_guide/libraries/benchmark.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'user_guide/libraries/benchmark.html') diff --git a/user_guide/libraries/benchmark.html b/user_guide/libraries/benchmark.html index 37252b61c..17e67fc84 100644 --- a/user_guide/libraries/benchmark.html +++ b/user_guide/libraries/benchmark.html @@ -12,7 +12,7 @@ @@ -127,9 +127,9 @@ echo $this->benchmark->elapsed_time('dog', 'bird');

Profiling Your Benchmark Points

-

If you want your benchmark data to be available to the -Profiler all of your marked points must be set up in pairs, and -each mark point name must end with _start and _end. +

If you want your benchmark data to be available to the +Profiler all of your marked points must be set up in pairs, and +each mark point name must end with _start and _end. Each pair of points must otherwise be named identically. Example:

@@ -158,14 +158,14 @@ is sent to the browser, simply place this in one of your view templates:

<?=$this->benchmark->elapsed_time();?> -

You'll notice that it's the same function used in the examples above to calculate the time between two point, except you are +

You'll notice that it's the same function used in the examples above to calculate the time between two point, except you are not using any parameters. When the parameters are absent, Code Igniter does not stop the benchmark until right before the final output is sent to the browser. It doesn't matter where you use the function call, the timer will continue to run until the very end.

An alternate way to show your elapsed time in your view files is to use this pseudo-variable, if you prefer not to use the pure PHP:

{elapsed_time} -

Note: If you want to benchmark anything within your controller +

Note: If you want to benchmark anything within your controller functions you must set your own start/end points.

-- cgit v1.2.3-24-g4f1b