3 # Stub profiling functions
5 $haveProctitle=function_exists("setproctitle");
6 function wfProfileIn( $fn = '' ) {
7 global $hackwhere, $wgDBname, $haveProctitle;
10 setproctitle($fn . " [$wgDBname]");
13 function wfProfileOut( $fn = '' ) {
14 global $hackwhere, $wgDBname, $haveProctitle;
17 if (count($hackwhere))
18 array_pop($hackwhere);
19 if (count($hackwhere))
20 setproctitle($hackwhere[count($hackwhere)-1] . " [$wgDBname]");
22 function wfGetProfilingOutput( $s, $e ) {}
23 function wfProfileClose() {}
24 function wfLogProfilingData() {}