summaryrefslogtreecommitdiff
path: root/includes/ProfilerSimple.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/ProfilerSimple.php')
-rw-r--r--includes/ProfilerSimple.php4
1 files changed, 4 insertions, 0 deletions
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;