Page MenuHomeWickedGov Phorge

SectionProfileCallback.php
No OneTemporary

Size
618 B
Referenced Files
None
Subscribers
None

SectionProfileCallback.php

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

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)

Event Timeline