From 333ad2a3ab841228ad17b19caccc733035382e0b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 21 Aug 2004 09:25:24 +0000 Subject: [PATCH] Fix notices from stupid code in last commit --- includes/Profiling.php | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.20.1