00001 <?php 00009 $wgProfiling = false; 00010 00012 $haveProctitle = function_exists( 'setproctitle' ); 00013 00018 function wfProfileIn( $fn = '' ) { 00019 global $hackwhere, $wgDBname, $haveProctitle; 00020 if( $haveProctitle ){ 00021 $hackwhere[] = $fn; 00022 setproctitle( $fn . " [$wgDBname]" ); 00023 } 00024 } 00025 00030 function wfProfileOut( $fn = '' ) { 00031 global $hackwhere, $wgDBname, $haveProctitle; 00032 if( !$haveProctitle ) 00033 return; 00034 if( count( $hackwhere ) ) 00035 array_pop( $hackwhere ); 00036 if( count( $hackwhere ) ) 00037 setproctitle( $hackwhere[count( $hackwhere )-1] . " [$wgDBname]" ); 00038 } 00039 00043 function wfGetProfilingOutput( $s, $e ) {} 00044 00048 function wfProfileClose() {}