* (bug 6061) Improper escaping in some html forms
[mediawiki.git] / includes / ProfilerStub.php
blob3bcdaab2afd27beacc450a5ece3cc43e01829a4c
1 <?php
3 # Stub profiling functions
5 $haveProctitle=function_exists("setproctitle");
6 function wfProfileIn( $fn = '' ) {
7 global $hackwhere, $wgDBname, $haveProctitle;
8 if ($haveProctitle) {
9 $hackwhere[] = $fn;
10 setproctitle($fn . " [$wgDBname]");
13 function wfProfileOut( $fn = '' ) {
14 global $hackwhere, $wgDBname, $haveProctitle;
15 if (!$haveProctitle)
16 return;
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() {}