3 * Stub profiling functions
7 /** backward compatibility */
10 /** is setproctitle function aviable ? */
11 $haveProctitle = function_exists( 'setproctitle' );
14 * Begin profiling of a function
17 function wfProfileIn( $fn = '' ) {
18 global $hackwhere, $wgDBname, $haveProctitle;
21 setproctitle( $fn . " [$wgDBname]" );
26 * Stop profiling of a function
29 function wfProfileOut( $fn = '' ) {
30 global $hackwhere, $wgDBname, $haveProctitle;
33 if( count( $hackwhere ) )
34 array_pop( $hackwhere );
35 if( count( $hackwhere ) )
36 setproctitle( $hackwhere[count( $hackwhere )-1] . " [$wgDBname]" );
40 * Does nothing, just for compatibility
42 function wfGetProfilingOutput( $s, $e ) {}
45 * Does nothing, just for compatibility
47 function wfProfileClose() {}