X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fprofiler%2FProfilerStub.php;h=1017e44660ac9ba0059c1a8e61f490b9e6da43c9;hb=f284dffc212bbf6628ccbd386cc1d2b16ace891c;hp=9a7ec8c3ffb9045ff45fe6c8e84492a8dc962832;hpb=8181f97897e2ce419d4e8599240af46d33b5ea63;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/profiler/ProfilerStub.php b/includes/profiler/ProfilerStub.php index 9a7ec8c3ff..1017e44660 100644 --- a/includes/profiler/ProfilerStub.php +++ b/includes/profiler/ProfilerStub.php @@ -27,16 +27,8 @@ * @ingroup Profiler */ class ProfilerStub extends Profiler { - public function profileIn( $fn ) { - } - - public function profileOut( $fn ) { - } - public function scopedProfileIn( $section ) { - return new ScopedCallback( function () { - // no-op - } ); + return null; // no-op } public function getFunctionStats() { @@ -48,7 +40,9 @@ class ProfilerStub extends Profiler { public function close() { } - public function getCurrentSection() { - return ''; + public function logData() { + } + + public function logDataPageOutputOnly() { } }