From 086ae52d12011746a75f5588e877347bc0457352 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 21 Mar 2008 11:49:34 +0100 Subject: Update auf MediaWiki 1.12.0 --- includes/ProfilerSimple.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'includes/ProfilerSimple.php') diff --git a/includes/ProfilerSimple.php b/includes/ProfilerSimple.php index b07f2517..20ab99c0 100644 --- a/includes/ProfilerSimple.php +++ b/includes/ProfilerSimple.php @@ -72,10 +72,14 @@ class ProfilerSimple extends Profiler { $message = "Profile section ended by close(): {$ofname}"; $functionname = $ofname; $this->debug( "$message\n" ); + $this->mCollated[$message] = array( + 'real' => 0.0, 'count' => 1); } elseif ($ofname != $functionname) { $message = "Profiling error: in({$ofname}), out($functionname)"; $this->debug( "$message\n" ); + $this->mCollated[$message] = array( + 'real' => 0.0, 'count' => 1); } $entry =& $this->mCollated[$functionname]; $elapsedcpu = $this->getCpuTime() - $octime; -- cgit v1.2.3-54-g00ecf