Fixed running percents in SectionProfiler
[lhc/web/wiklou.git] / includes / profiler / Profiler.php
index 9650ff5..2be142f 100644 (file)
@@ -100,13 +100,6 @@ abstract class Profiler {
                }
        }
 
-       /**
-        * Return whether this a stub profiler
-        *
-        * @return bool
-        */
-       abstract public function isStub();
-
        /**
         * @param string $id
         */
@@ -178,7 +171,7 @@ abstract class Profiler {
        public function logData() {
                $output = isset( $this->params['output'] ) ? $this->params['output'] : null;
 
-               if ( !$output || $this->isStub() ) {
+               if ( !$output || $this instanceof ProfilerStub ) {
                        // return early when no output classes defined or we're a stub
                        return;
                }