Merge "xhprof: Guard against division by 0 when computing percentages"
[lhc/web/wiklou.git] / includes / profiler / ProfilerStub.php
index 510a0a0..9a7ec8c 100644 (file)
  * @ingroup Profiler
  */
 class ProfilerStub extends Profiler {
-       public function isStub() {
-               return true;
-       }
-
        public function profileIn( $fn ) {
        }
 
        public function profileOut( $fn ) {
        }
 
+       public function scopedProfileIn( $section ) {
+               return new ScopedCallback( function () {
+                       // no-op
+               } );
+       }
+
        public function getFunctionStats() {
        }