From: Brion Vibber Date: Sat, 21 Aug 2004 09:25:24 +0000 (+0000) Subject: Fix notices from stupid code in last commit X-Git-Tag: 1.5.0alpha1~2279 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=333ad2a3ab841228ad17b19caccc733035382e0b;p=lhc%2Fweb%2Fwiklou.git Fix notices from stupid code in last commit --- diff --git a/includes/Profiling.php b/includes/Profiling.php index 1dc72c0ac7..1997cf5b6f 100755 --- 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;