MediaWiki  1.29.2
ProfileSection Class Reference

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

Detailed Description

Class for handling function-scope profiling.

Since
1.22
Deprecated:
since 1.25 No-op now

Definition at line 30 of file ProfileSection.php.

Constructor & Destructor Documentation

◆ __construct()

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__ );
Parameters
string$nameName of the function to profile

Definition at line 42 of file ProfileSection.php.


The documentation for this class was generated from the following file:
ProfileSection
Class for handling function-scope profiling.
Definition: ProfileSection.php:30
$section
usually copyright or history_copyright This message must be in HTML not wikitext if the section is included from a template $section
Definition: hooks.txt:2929