Note: The words "start" and "end" are arbitrary. They are simply words used to set two markers. You can
+
Note: The words "code_start" and "code_end" are arbitrary. They are simply words used to set two markers. You can
use any words you want, and you can set multiple sets of markers. Consider this example:
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:
@@ -155,42 +181,6 @@ system using the following code in one of your view file:
{memory_usage}
-
-
Auto Profiler
-
-
When the "auto profiler" is enabled, you'll see a report printed at the bottom of your pages containing a list of
-execution times for all benchmarks you have set throughout your application. This information can help you optimize your program.
-
-
Note: Even though this is a feature of the Benchmark class you will enable it from the Output class as indicated below.
-
-
To enable the profiler place the the following function anywhere within your Controllers:
-$this->output->enable_profiler(TRUE);
-
-
When enabled you'll see a table of execution times at the bottom of your pages.
-
-
To disable the profiler you will use:
-$this->output->enable_profiler(FALSE);
-
-
Important: In order to use this feature all of your marked points must end with _start and _end, and
-each pair of points must otherwise be named identically. Example:
Permits you to enable/disable the Profiler, which will display benchmark and other data
+at the bottom of your pages for debugging and optimization purposes.
+
+
To enable the profiler place the the following function anywhere within your Controller functions:
+$this->output->enable_profiler(TRUE);
+
+
When enabled a report will be generated and inserted at the bottom of your pages.
The Profiler Class enables you to display benchmark, query, POST data at the bottom of your pages during
-development in order to help with debugging and optimization.
-
-
-
Initializing the Class
-
-
Important: This class does NOT need to be initialized. It is loaded automatically by the Output class if
-profiling is enabled as shown below.
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
--
cgit v1.2.3-24-g4f1b