X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fprofiler%2FProfilerSimple.php;h=805c60f4b4a80dd820ca9e44fe64e87ee757b2b8;hb=edba2e008c079f4d51abc70f2c98c1dc8009a900;hp=1d4873c6287f9395bc6be2471504a6fc1c824c26;hpb=b4ceb49513aff36e08894f7fc8b7b336b8dac636;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/profiler/ProfilerSimple.php b/includes/profiler/ProfilerSimple.php index 1d4873c628..805c60f4b4 100644 --- a/includes/profiler/ProfilerSimple.php +++ b/includes/profiler/ProfilerSimple.php @@ -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 ); } }