3 * Stub profiling functions
8 /** backward compatibility */
11 /** is setproctitle function available ? */
12 $haveProctitle = function_exists( 'setproctitle' );
15 * Begin profiling of a function
18 function wfProfileIn( $fn = '' ) {
19 global $hackwhere, $wgDBname, $haveProctitle;
22 setproctitle( $fn . " [$wgDBname]" );
27 * Stop profiling of a function
30 function wfProfileOut( $fn = '' ) {
31 global $hackwhere, $wgDBname, $haveProctitle;
34 if( count( $hackwhere ) )
35 array_pop( $hackwhere );
36 if( count( $hackwhere ) )
37 setproctitle( $hackwhere[count( $hackwhere )-1] . " [$wgDBname]" );
41 * Does nothing, just for compatibility
43 function wfGetProfilingOutput( $s, $e ) {}
46 * Does nothing, just for compatibility
48 function wfProfileClose() {}