MediaWiki
1.23.2
|
Class for handling function-scope profiling. More...
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. More... | |
__destruct () | |
Protected Attributes | |
$enabled = false | |
$name | |
ProfileSection::__construct | ( | $name | ) |
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 );
string | $name | Name of the function to profile |
Definition at line 75 of file Profiler.php.
References Profiler\$__instance, $name, Profiler\instance(), and name.
ProfileSection::__destruct | ( | ) |
Definition at line 86 of file Profiler.php.
References Profiler\$__instance, and name.
|
protected |
Definition at line 62 of file Profiler.php.
|
protected |
Definition at line 61 of file Profiler.php.
Referenced by __construct().