MediaWiki master
SectionProfileCallback Class Reference

Subclass ScopedCallback to avoid call_user_func_array(), which is slow. More...

Inherits ScopedCallback.

Collaboration diagram for SectionProfileCallback:

Public Member Functions

 __construct (SectionProfiler $profiler, string $section)
 
 __destruct ()
 

Protected Attributes

SectionProfiler $profiler
 
string $section
 

Detailed Description

Subclass ScopedCallback to avoid call_user_func_array(), which is slow.

Access: internal
For use by SectionProfiler

Definition at line 28 of file SectionProfileCallback.php.

Constructor & Destructor Documentation

◆ __construct()

SectionProfileCallback::__construct ( SectionProfiler $profiler,
string $section )
Parameters
SectionProfiler$profiler
string$section

Definition at line 37 of file SectionProfileCallback.php.

References $profiler, and $section.

◆ __destruct()

SectionProfileCallback::__destruct ( )

Definition at line 43 of file SectionProfileCallback.php.

Member Data Documentation

◆ $profiler

SectionProfiler SectionProfileCallback::$profiler
protected

Definition at line 30 of file SectionProfileCallback.php.

Referenced by __construct().

◆ $section

string SectionProfileCallback::$section
protected

Definition at line 31 of file SectionProfileCallback.php.

Referenced by __construct().


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