Made a new SectionProfileCallback class that extends ScopedCallback
[lhc/web/wiklou.git] / includes / profiler / ProfilerStub.php
index 43e2193..1d77cc0 100644 (file)
  * @ingroup Profiler
  */
 class ProfilerStub extends Profiler {
-       public function isStub() {
-               return true;
-       }
-
        public function profileIn( $fn ) {
        }
 
        public function profileOut( $fn ) {
        }
 
-       public function getOutput() {
+       public function scopedProfileIn( $section ) {
+               return new ScopedCallback( null ); // no-op
        }
 
-       public function close() {
+       public function getFunctionStats() {
+       }
+
+       public function getOutput() {
        }
 
-       public function logData() {
+       public function close() {
        }
 
        public function getCurrentSection() {
                return '';
        }
-
-       public function getRawData() {
-               return array();
-       }
 }