Remove calls to legacy Profiler::debug()
authorBryan Davis <bd808@wikimedia.org>
Wed, 19 Nov 2014 18:55:28 +0000 (11:55 -0700)
committerBryan Davis <bd808@wikimedia.org>
Wed, 19 Nov 2014 18:55:28 +0000 (11:55 -0700)
Profiler::debug() was moved to ProfilerStandard. Since we have
a proposed patch set already that will remove
wfProfileIn()/wfProfileout() calls that wrap whole methods this seem
like an easy problem to solve by removing this logging functionality.

Change-Id: I429ec29fe4393ce886361b896b650fd39480eda5

includes/profiler/ProfilerXhprof.php

index 9379379..d67806b 100644 (file)
@@ -109,10 +109,6 @@ class ProfilerXhprof extends Profiler {
         * @param string $functionname
         */
        public function profileIn( $functionname ) {
-               global $wgDebugFunctionEntry;
-               if ( $wgDebugFunctionEntry ) {
-                       $this->debug( "Entering {$functionname}" );
-               }
        }
 
        /**
@@ -124,10 +120,6 @@ class ProfilerXhprof extends Profiler {
         * @param string $functionname
         */
        public function profileOut( $functionname ) {
-               global $wgDebugFunctionEntry;
-               if ( $wgDebugFunctionEntry ) {
-                       $this->debug( "Exiting {$functionname}" );
-               }
        }
 
        /**