Merge "xhprof: Guard against division by 0 when computing percentages"
[lhc/web/wiklou.git] / includes / profiler / ProfilerStub.php
index e81f579..9a7ec8c 100644 (file)
  * @ingroup Profiler
  */
 class ProfilerStub extends Profiler {
-       public function isStub() {
-               return true;
+       public function profileIn( $fn ) {
        }
 
-       public function isPersistent() {
-               return false;
+       public function profileOut( $fn ) {
        }
 
-       public function profileIn( $fn ) {
+       public function scopedProfileIn( $section ) {
+               return new ScopedCallback( function () {
+                       // no-op
+               } );
        }
 
-       public function profileOut( $fn ) {
+       public function getFunctionStats() {
        }
 
        public function getOutput() {
@@ -47,14 +48,7 @@ class ProfilerStub extends Profiler {
        public function close() {
        }
 
-       public function logData() {
-       }
-
        public function getCurrentSection() {
                return '';
        }
-
-       public function getRawData() {
-               return array();
-       }
 }