From f0d32bf65d52c3d65b6054c61a625cf48f4ccab3 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 1 Apr 2014 14:52:33 +0200 Subject: [PATCH] Send profiled items under the correct name Fix for Ie8481a2e13 (811a084). The "-total" item was send under the name "close" since it's ended by close(). Bug: 63347 Change-Id: Iad91f1d12303e5cfb92c111f79c0ce5a8187f53b --- includes/profiler/ProfilerSimple.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/profiler/ProfilerSimple.php b/includes/profiler/ProfilerSimple.php index 7d78e36913..6331a3049e 100644 --- a/includes/profiler/ProfilerSimple.php +++ b/includes/profiler/ProfilerSimple.php @@ -107,10 +107,10 @@ class ProfilerSimple extends Profiler { if ( $functionname == 'close' ) { if ( $ofname != '-total' ) { $message = "Profile section ended by close(): {$ofname}"; - $functionname = $ofname; $this->debugGroup( 'profileerror', $message ); $this->mCollated[$message] = $this->errorEntry; } + $functionname = $ofname; } elseif ( $ofname != $functionname ) { $message = "Profiling error: in({$ofname}), out($functionname)"; $this->debugGroup( 'profileerror', $message ); -- 2.20.1