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;
33 if( !$haveProctitle ) {
36 if( count( $hackwhere ) ) {
37 array_pop( $hackwhere );
39 if( count( $hackwhere ) ) {
40 setproctitle( $hackwhere[count( $hackwhere )-1] . " [$wgDBname]" );
45 * Does nothing, just for compatibility
47 function wfGetProfilingOutput( $s, $e ) {}
50 * Does nothing, just for compatibility
52 function wfProfileClose() {}