$functionname not defined in this context, replacing with hardcoded "-setup" array key.
This commit is contained in:
parent
3ce85d933f
commit
fac094666a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue