MediaWiki REL1_40
ProfilerStub.php
Go to the documentation of this file.
1<?php
26class ProfilerStub extends Profiler {
27 public function scopedProfileIn( $section ) {
28 return null; // no-op
29 }
30
31 public function getFunctionStats() {
32 return [];
33 }
34
35 public function getOutput() {
36 return '';
37 }
38
39 public function close() {
40 }
41
42 public function logData() {
43 }
44
45 public function logDataPageOutputOnly() {
46 }
47}
Stub profiler that does nothing.
close()
Close opened profiling sections.
getFunctionStats()
Get the aggregated inclusive profiling data for each method.
logDataPageOutputOnly()
Log the data to the script/request output for all ProfilerOutput instances that do so.
getOutput()
Returns a profiling output to be stored in debug file.
scopedProfileIn( $section)
Mark the start of a custom profiling frame (e.g.
logData()
Log data to all the applicable backing stores.
Profiler base class that defines the interface and some shared functionality.
Definition Profiler.php:37