MediaWiki  REL1_24
ProfileSection Class Reference

Class for handling function-scope profiling. More...

List of all members.

Public Member Functions

 __construct ($name)
 Begin profiling of a function and return an object that ends profiling of the function when that object leaves scope.
 __destruct ()

Protected Attributes

 $enabled = false
 $name

Detailed Description

Class for handling function-scope profiling.

Since:
1.22

Definition at line 74 of file Profiler.php.


Constructor & Destructor Documentation

Begin profiling of a function and return an object that ends profiling of the function when that object leaves scope.

As long as the object is not specifically linked to other objects, it will fall out of scope at the same moment that the function to be profiled terminates.

This is typically called like: $section = new ProfileSection( __METHOD__ );

Parameters:
string$nameName of the function to profile

Definition at line 89 of file Profiler.php.

References Profiler\$__instance, $name, Profiler\instance(), and name.

Definition at line 100 of file Profiler.php.

References Profiler\$__instance, and name.


Member Data Documentation

ProfileSection::$enabled = false [protected]

Definition at line 76 of file Profiler.php.

ProfileSection::$name [protected]

Definition at line 75 of file Profiler.php.

Referenced by __construct().


The documentation for this class was generated from the following file: