profileIn( $functionname ); } } /** * Stop profiling of a function * @param string $functionname Name of the function we have profiled */ function wfProfileOut( $functionname = 'missing' ) { // Use Profiler member variable directly to reduce overhead if ( Profiler::$__instance === null ) { Profiler::instance(); } if ( !( Profiler::$__instance instanceof ProfilerStub ) ) { Profiler::$__instance->profileOut( $functionname ); } }