3 * Stub profiling functions
8 /** backward compatibility */
12 /** is setproctitle function available ? */
13 $haveProctitle = function_exists( 'setproctitle' );
16 * Begin profiling of a function
19 function wfProfileIn( $fn = '' ) {
20 global $hackwhere, $wgDBname, $haveProctitle;
23 setproctitle( $fn . " [$wgDBname]" );
28 * Stop profiling of a function
31 function wfProfileOut( $fn = '' ) {
32 global $hackwhere, $wgDBname, $haveProctitle;
35 if( count( $hackwhere ) )
36 array_pop( $hackwhere );
37 if( count( $hackwhere ) )
38 setproctitle( $hackwhere[count( $hackwhere )-1] . " [$wgDBname]" );
42 * Does nothing, just for compatibility
44 function wfGetProfilingOutput( $s, $e ) {}
47 * Does nothing, just for compatibility
49 function wfProfileClose() {}