Class Benchmark_Profiler

Description

Located in /libraries/pear/Benchmark/Profiler.php (line 62)

PEAR
   |
   --Benchmark_Profiler
Variable Summary
 boolean $_auto
 array $_callers
 array $_calls
 array $_num_calls
 array $_sections
 array $_stack
 integer $_strlen_max
Method Summary
 Benchmark_Profiler Benchmark_Profiler ([mixed $auto = false])
 void display ()
 void enterSection (string $name)
 void getSectionInformations ([mixed $section = 'Global'])
 void leaveSection (string $name)
 void start ()
 void stop ()
 void _getOutput ()
Variables
boolean $_auto = false (line 118)

Auto-starts and stops profiler

  • access: private
array $_callers = array() (line 110)

Notes for each section how often it was called by which section

  • access: private
array $_calls = array() (line 102)

Notes for each section how often it calls which section

  • access: private
array $_num_calls = array() (line 86)

Notes how often a section was entered

  • access: private
array $_sections = array() (line 70)

Contains the total ex. time of each section

  • access: private
array $_stack = array() (line 78)

Calling stack

  • access: private
integer $_strlen_max = 0 (line 126)

Max marker name length for non-html output

  • access: private
array $_sub_sections_time = array() (line 94)

Notes for each section how much time is spend in sub-sections

  • access: private
Methods
Constructor Benchmark_Profiler (line 133)

Constructor, starts profiling recording

  • access: public
Benchmark_Profiler Benchmark_Profiler ([mixed $auto = false])
display (line 278)

Returns formatted profiling information.

  • access: public
void display ()
enterSection (line 309)

Enters code section.

void enterSection (string $name)
  • string $name: name of the code section
getAllSectionsInformations (line 194)

Returns profiling informations for all sections.

  • access: public
void getAllSectionsInformations ()
getSectionInformations (line 158)

Returns profiling informations for a given section.

  • access: public
void getSectionInformations ([mixed $section = 'Global'])
leaveSection (line 343)

Leaves code section.

void leaveSection (string $name)
  • string $name: name of the marker to be set
start (line 288)

Enters "Global" section.

void start ()
stop (line 298)

Leaves "Global" section.

void stop ()
_Benchmark_Profiler (line 146)

Destructor, stops profiling recording

  • access: private
void _Benchmark_Profiler ()
_getOutput (line 209)

Returns formatted profiling information.

void _getOutput ()

Documentation generated on Fri, 3 Dec 2004 12:27:22 +0000 by phpDocumentor 1.3.0RC3