MediaWiki REL1_34
ProfilerStub.php
Go to the documentation of this file.
1<?php
29class 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}
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 the data to the backing store for all ProfilerOutput instances that have one.
Profiler base class that defines the interface and some trivial functionality.
Definition Profiler.php:33