X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fprofiler%2FProfiler.php;h=235a5ad142babd9469c310ef7f9c183e85202bb2;hb=e455c46fad1c60b89181700c48d43a1882d6643a;hp=41a9d60141930191aa8d0af4e9f338cf05f59681;hpb=cd74d6228df8d93565929244c202a5682228ddeb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/profiler/Profiler.php b/includes/profiler/Profiler.php index 41a9d60141..235a5ad142 100644 --- a/includes/profiler/Profiler.php +++ b/includes/profiler/Profiler.php @@ -283,8 +283,8 @@ class Profiler { return; // short-circuit // @TODO: hardcoded check is a tad janky (what about FOR UPDATE?) } elseif ( !preg_match( '/^query-m: (?!SELECT)/', $method ) - && $realtime < $this->mDBLockThreshold ) - { + && $realtime < $this->mDBLockThreshold + ) { return; // not a DB master query nor slow enough } $now = microtime( true ); @@ -594,8 +594,8 @@ class Profiler { $prof .= sprintf( $format, substr( $fname, 0, $nameWidth ), $calls, - (float) ( $elapsed * 1000 ), - (float) ( $elapsed * 1000 ) / $calls, + (float)( $elapsed * 1000 ), + (float)( $elapsed * 1000 ) / $calls, $percent, $memory, ( $this->mMin[$fname] * 1000.0 ), @@ -665,7 +665,7 @@ class Profiler { foreach ( $this->mCollated as $name => $elapsed ) { $eventCount = $this->mCalls[$name]; - $timeSum = (float) ( $elapsed * 1000 ); + $timeSum = (float)( $elapsed * 1000 ); $memorySum = (float)$this->mMemory[$name]; $name = substr( $name, 0, 255 );