MediaWiki  master
ProfilerStub.php
Go to the documentation of this file.
1 <?php
26 class 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 }
ProfilerStub
Stub profiler that does nothing.
Definition: ProfilerStub.php:26
ProfilerStub\getOutput
getOutput()
Returns a profiling output to be stored in debug file.
Definition: ProfilerStub.php:35
Profiler
Profiler base class that defines the interface and some shared functionality.
Definition: Profiler.php:33
ProfilerStub\scopedProfileIn
scopedProfileIn( $section)
Mark the start of a custom profiling frame (e.g.
Definition: ProfilerStub.php:27
ProfilerStub\getFunctionStats
getFunctionStats()
Get the aggregated inclusive profiling data for each method.
Definition: ProfilerStub.php:31
ProfilerStub\close
close()
Close opened profiling sections.
Definition: ProfilerStub.php:39
ProfilerStub\logDataPageOutputOnly
logDataPageOutputOnly()
Log the data to the script/request output for all ProfilerOutput instances that do so.
Definition: ProfilerStub.php:45
ProfilerStub\logData
logData()
Log the data to the backing store for all ProfilerOutput instances that have one.
Definition: ProfilerStub.php:42