X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fprofiler%2FProfilerSimple.php;h=805c60f4b4a80dd820ca9e44fe64e87ee757b2b8;hb=edba2e008c079f4d51abc70f2c98c1dc8009a900;hp=1322e47a526c9c3e7573fd752cd73fdce85747bf;hpb=0bfeedd9c277be0c183c5d69d049059f2742d5b5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/profiler/ProfilerSimple.php b/includes/profiler/ProfilerSimple.php index 1322e47a52..805c60f4b4 100644 --- a/includes/profiler/ProfilerSimple.php +++ b/includes/profiler/ProfilerSimple.php @@ -29,7 +29,7 @@ class ProfilerSimple extends Profiler { var $mMinimumTime = 0; - var $zeroEntry = array( 'cpu'=> 0.0, 'cpu_sq' => 0.0, 'real' => 0.0, 'real_sq' => 0.0, 'count' => 0 ); + var $zeroEntry = array( 'cpu' => 0.0, 'cpu_sq' => 0.0, 'real' => 0.0, 'real_sq' => 0.0, 'count' => 0 ); var $errorEntry; public function isPersistent() { @@ -96,11 +96,12 @@ class ProfilerSimple extends Profiler { $this->mCollated[$functionname] =& $entry; } $entry['cpu'] += $elapsedcpu; - $entry['cpu_sq'] += $elapsedcpu*$elapsedcpu; + $entry['cpu_sq'] += $elapsedcpu * $elapsedcpu; $entry['real'] += $elapsedreal; - $entry['real_sq'] += $elapsedreal*$elapsedreal; + $entry['real_sq'] += $elapsedreal * $elapsedreal; $entry['count']++; + $this->updateTrxProfiling( $functionname, $elapsedreal ); } }