dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Align "What's this" vertically"
[lhc/web/wiklou.git]
/
includes
/
profiler
/
SectionProfiler.php
diff --git
a/includes/profiler/SectionProfiler.php
b/includes/profiler/SectionProfiler.php
index
7e3c398
..
57bd01f
100644
(file)
--- a/
includes/profiler/SectionProfiler.php
+++ b/
includes/profiler/SectionProfiler.php
@@
-19,7
+19,6
@@
*
* @file
* @ingroup Profiler
*
* @file
* @ingroup Profiler
- * @author Aaron Schulz
*/
use Wikimedia\ScopedCallback;
*/
use Wikimedia\ScopedCallback;
@@
-67,7
+66,7
@@
class SectionProfiler {
}
/**
}
/**
- * @param ScopedCallback $section
+ * @param ScopedCallback
&
$section
*/
public function scopedProfileOut( ScopedCallback &$section ) {
$section = null;
*/
public function scopedProfileOut( ScopedCallback &$section ) {
$section = null;
@@
-299,7
+298,7
@@
class SectionProfiler {
/* Find all items under this entry */
$level = $stack[$max][1];
$working = [];
/* Find all items under this entry */
$level = $stack[$max][1];
$working = [];
- for ( $i = $max -1; $i >= 0; $i-- ) {
+ for ( $i = $max -
1; $i >= 0; $i-- ) {
if ( $stack[$i][1] > $level ) {
$working[] = $stack[$i];
} else {
if ( $stack[$i][1] > $level ) {
$working[] = $stack[$i];
} else {
@@
-440,7
+439,7
@@
class SectionProfiler {
protected function calltreeCount( $stack, $start ) {
$level = $stack[$start][1];
$count = 0;
protected function calltreeCount( $stack, $start ) {
$level = $stack[$start][1];
$count = 0;
- for ( $i = $start -1; $i >= 0 && $stack[$i][1] > $level; $i-- ) {
+ for ( $i = $start -
1; $i >= 0 && $stack[$i][1] > $level; $i-- ) {
$count ++;
}
return $count;
$count ++;
}
return $count;