dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85558b1
)
Fix notices from stupid code in last commit
author
Brion Vibber
<brion@users.mediawiki.org>
Sat, 21 Aug 2004 09:25:24 +0000
(09:25 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Sat, 21 Aug 2004 09:25:24 +0000
(09:25 +0000)
includes/Profiling.php
patch
|
blob
|
history
diff --git
a/includes/Profiling.php
b/includes/Profiling.php
index
1dc72c0
..
1997cf5
100755
(executable)
--- a/
includes/Profiling.php
+++ b/
includes/Profiling.php
@@
-102,6
+102,7
@@
class Profiler
$prof .= sprintf( $titleFormat, "Name", "Calls", "Total", "Each", "%", "Mem" );
$this->mCollated = array();
$this->mCalls = array();
+ $this->mMemory = array();
# Estimate profiling overhead
$profileCount = count( $this->mStack );
@@
-127,6
+128,7
@@
class Profiler
if ( !array_key_exists( $fname, $this->mCollated ) ) {
$this->mCollated[$fname] = 0;
$this->mCalls[$fname] = 0;
+ $this->mMemory[$fname] = 0;
}
$this->mCollated[$fname] += $elapsed;