From 9d9ab3ad2cba4d369cd5a10b5fe675b31cc66480 Mon Sep 17 00:00:00 2001 From: Stolz Date: Wed, 31 Aug 2011 19:22:36 +0200 Subject: Added missing profiler section (session_data) --- user_guide/general/profiling.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'user_guide/general/profiling.html') diff --git a/user_guide/general/profiling.html b/user_guide/general/profiling.html index 9895b0284..0993da5b4 100644 --- a/user_guide/general/profiling.html +++ b/user_guide/general/profiling.html @@ -154,6 +154,11 @@ This information can be useful during development in order to help with debuggin The URI of the current request TRUE + + session_data + Data stored in current session + TRUE + query_toggle_count The number of queries after which the query block will default to hidden. -- cgit v1.2.3-24-g4f1b From 9a30299fd128c536190b9dd310fc7f4eee21ed07 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 27 Sep 2011 16:03:06 +0800 Subject: Update: user guide Previous Topic and Next Topic url errors. --- user_guide/general/profiling.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'user_guide/general/profiling.html') diff --git a/user_guide/general/profiling.html b/user_guide/general/profiling.html index 0993da5b4..c7c4ed38c 100644 --- a/user_guide/general/profiling.html +++ b/user_guide/general/profiling.html @@ -177,10 +177,10 @@ Previous Topic:  Caching    ·   Top of Page   ·   User Guide Home   ·   -Next Topic:  Managing Applications +Next Topic:  Running via the CLI

CodeIgniter  ·  Copyright © 2006 - 2011  ·  EllisLab, Inc.

- \ No newline at end of file + -- cgit v1.2.3-24-g4f1b From 8ede1a2ecbb62577afd32996956c5feaf7ddf9b6 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 5 Oct 2011 13:34:52 -0500 Subject: replacing the old HTML user guide with a Sphinx-managed user guide --- user_guide/general/profiling.html | 186 -------------------------------------- 1 file changed, 186 deletions(-) delete mode 100644 user_guide/general/profiling.html (limited to 'user_guide/general/profiling.html') diff --git a/user_guide/general/profiling.html b/user_guide/general/profiling.html deleted file mode 100644 index c7c4ed38c..000000000 --- a/user_guide/general/profiling.html +++ /dev/null @@ -1,186 +0,0 @@ - - - - - -Profiling Your Application : CodeIgniter User Guide - - - - - - - - - - - - - - - - - - - - - -
- - - - - -

CodeIgniter User Guide Version 2.0.3

-
- - - - - - - - - -
- - -
- - - -
- - -

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 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.

- - -

Enabling and Disabling Profiler Sections

- -

Each section of Profiler data can be enabled or disabled by setting a corresponding config variable to TRUE or FALSE. This can be done one of two ways. First, you can set application wide defaults with the application/config/profiler.php config file.

- - $config['config']          = FALSE;
- $config['queries']         = FALSE;
- -

In your controllers, you can override the defaults and config file values by calling the set_profiler_sections() method of the Output class:

- - $sections = array(
-     'config'  => TRUE,
-     'queries' => TRUE
-     );
-
- $this->output->set_profiler_sections($sections);
- -

Available sections and the array key used to access them are described in the table below.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
KeyDescriptionDefault
benchmarksElapsed time of Benchmark points and total execution timeTRUE
configCodeIgniter Config variablesTRUE
controller_infoThe Controller class and method requestedTRUE
getAny GET data passed in the requestTRUE
http_headersThe HTTP headers for the current requestTRUE
memory_usageAmount of memory consumed by the current request, in bytesTRUE
postAny POST data passed in the requestTRUE
queriesListing of all database queries executed, including execution timeTRUE
uri_stringThe URI of the current requestTRUE
session_dataData stored in current sessionTRUE
query_toggle_countThe number of queries after which the query block will default to hidden.25
- - -
- - - - - - - -- cgit v1.2.3-24-g4f1b