]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blob - includes/ProfilerStub.php
MediaWiki 1.11.0
[autoinstallsdev/mediawiki.git] / includes / ProfilerStub.php
1 <?php
2
3 # Stub profiling functions
4
5 $haveProctitle=function_exists("setproctitle");
6 function wfProfileIn( $fn = '' ) {
7         global $hackwhere, $wgDBname, $haveProctitle;
8         if ($haveProctitle) {
9                 $hackwhere[] = $fn;
10                 setproctitle($fn . " [$wgDBname]");
11         }
12 }
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]");
21 }
22 function wfGetProfilingOutput( $s, $e ) {}
23 function wfProfileClose() {}
24 $wgProfiling = false;
25
26