20 use Wikimedia\ScopedCallback;
39 parent::__construct(
null );
45 $this->profiler->profileOutInternal( $this->section );
Subclass ScopedCallback to avoid call_user_func_array(), which is slow.
__construct(SectionProfiler $profiler, $section)
SectionProfiler $profiler
Arbitrary section name based PHP profiling.