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