Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7419819
SectionProfileCallback.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
618 B
Referenced Files
None
Subscribers
None
SectionProfileCallback.php
View Options
<?php
/**
* @license GPL-2.0-or-later
* @file
*/
use
Wikimedia\ScopedCallback
;
/**
* Subclass ScopedCallback to avoid call_user_func_array(), which is slow.
*
* @ingroup Profiler
* @internal For use by SectionProfiler
*/
class
SectionProfileCallback
extends
ScopedCallback
{
protected
SectionProfiler
$profiler
;
protected
string
$section
;
public
function
__construct
(
SectionProfiler
$profiler
,
string
$section
)
{
parent
::
__construct
(
null
);
$this
->
profiler
=
$profiler
;
$this
->
section
=
$section
;
}
public
function
__destruct
()
{
$this
->
profiler
->
profileOutInternal
(
$this
->
section
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 04:42 (1 d, 4 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
6d/f3/8f96c9555d27e0e09dd0480ae938
Default Alt Text
SectionProfileCallback.php (618 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment