MediaWiki master
MediaWiki\Profiler\SectionProfileCallback Class Reference

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

Inherits ScopedCallback.

Collaboration diagram for MediaWiki\Profiler\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 17 of file SectionProfileCallback.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Profiler\SectionProfileCallback::__construct ( SectionProfiler $profiler,
string $section )

◆ __destruct()

MediaWiki\Profiler\SectionProfileCallback::__destruct ( )

Definition at line 28 of file SectionProfileCallback.php.

Member Data Documentation

◆ $profiler

SectionProfiler MediaWiki\Profiler\SectionProfileCallback::$profiler
protected

◆ $section

string MediaWiki\Profiler\SectionProfileCallback::$section
protected

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