From 0cd0d4ca3de84c65d48515c7fda333b2ac5d48fd Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 3 Oct 2006 05:21:32 +0000 Subject: --- user_guide/general/profiling.html | 119 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 user_guide/general/profiling.html (limited to 'user_guide/general') diff --git a/user_guide/general/profiling.html b/user_guide/general/profiling.html new file mode 100644 index 000000000..5ab568afb --- /dev/null +++ b/user_guide/general/profiling.html @@ -0,0 +1,119 @@ + + + + +Code Igniter User Guide + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +

Code Igniter User Guide Version 1.5.0

+
+ + + + + + + + + +
+ + +
+ + + +
+ + +

Profiling Your Application

+ +

The Profiler Class will display benchmark results, queries you have run, and $_POST data at the bottom of your pages. +This information can be useful 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.

+ +

Enabling the Profiler

+ +

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.

+ +

To disable the profiler you will use:

+$this->output->enable_profiler(FALSE); + +

Setting Benchmark Points

+ +

In order for the Profiler to compile and display your benchmark data you must name your mark points using specific syntax. + +Please read the information on setting Benchmark points in Benchmark Class page.

+ + + + + + + + + + + + + +
+ + + + + + + \ No newline at end of file -- cgit v1.2.3-24-g4f1b