Only support "daemonized" mode for redis job queues to avoid code duplication
[lhc/web/wiklou.git] / includes / profiler / ProfilerStub.php
index 510a0a0..5580f94 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( null ); // no-op
        }
 
        public function getFunctionStats() {