From 806756e4b5cd94e281f0ee84a37e556b753ce945 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 20 Sep 2011 01:28:08 +0000 Subject: [PATCH] Don't call Profiler::collateData() from ProfilerSimpleUDP, it destroys $this->mCollated which was filled by profileOut(), leading to a profile with only overhead entries. Call Profiler::close() instead, like what ProfilerSimpleText does. --- includes/profiler/ProfilerSimpleUDP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/profiler/ProfilerSimpleUDP.php b/includes/profiler/ProfilerSimpleUDP.php index 6985de142d..ae607aa6ea 100644 --- a/includes/profiler/ProfilerSimpleUDP.php +++ b/includes/profiler/ProfilerSimpleUDP.php @@ -13,7 +13,7 @@ class ProfilerSimpleUDP extends ProfilerSimple { public function logData() { global $wgUDPProfilerHost, $wgUDPProfilerPort; - $this->collateData(); + $this->close(); if ( isset( $this->mCollated['-total'] ) && $this->mCollated['-total']['real'] < $this->mMinimumTime ) { # Less than minimum, ignore -- 2.20.1