$functionname not defined in this context, replacing with hardcoded "-setup" array key.

This commit is contained in:
Nick Jenkins 2006-11-29 12:32:43 +00:00
parent 3ce85d933f
commit fac094666a

View file

@ -25,7 +25,7 @@ class ProfilerSimple extends Profiler {
$entry =& $this->mCollated["-setup"];
if (!is_array($entry)) {
$entry = array('cpu'=> 0.0, 'cpu_sq' => 0.0, 'real' => 0.0, 'real_sq' => 0.0, 'count' => 0);
$this->mCollated[$functionname] =& $entry;
$this->mCollated["-setup"] =& $entry;
}
$entry['cpu'] += $elapsedcpu;