Index: trunk/phase3/includes/ProfilerStub.php |
— | — | @@ -4,20 +4,20 @@ |
5 | 5 | |
6 | 6 | $haveProctitle=function_exists("setproctitle"); |
7 | 7 | function wfProfileIn( $fn = '' ) { |
8 | | - global $hackwhere, $haveProctitle; |
| 8 | + global $hackwhere, $wgDBname, $haveProctitle; |
9 | 9 | if ($haveProctitle) { |
10 | 10 | $hackwhere[] = $fn; |
11 | | - setproctitle($fn . ' ['.wfWikiID().']'); |
| 11 | + setproctitle($fn . " [$wgDBname]"); |
12 | 12 | } |
13 | 13 | } |
14 | 14 | function wfProfileOut( $fn = '' ) { |
15 | | - global $hackwhere, $haveProctitle; |
| 15 | + global $hackwhere, $wgDBname, $haveProctitle; |
16 | 16 | if (!$haveProctitle) |
17 | 17 | return; |
18 | 18 | if (count($hackwhere)) |
19 | 19 | array_pop($hackwhere); |
20 | 20 | if (count($hackwhere)) |
21 | | - setproctitle($hackwhere[count($hackwhere)-1] . ' ['.wfWikiID().']'); |
| 21 | + setproctitle($hackwhere[count($hackwhere)-1] . " [$wgDBname]"); |
22 | 22 | } |
23 | 23 | function wfGetProfilingOutput( $s, $e ) {} |
24 | 24 | function wfProfileClose() {} |