http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97590

Revision: 97590
Author:   tstarling
Date:     2011-09-20 01:28:08 +0000 (Tue, 20 Sep 2011)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/phase3/includes/profiler/ProfilerSimpleUDP.php

Modified: trunk/phase3/includes/profiler/ProfilerSimpleUDP.php
===================================================================
--- trunk/phase3/includes/profiler/ProfilerSimpleUDP.php        2011-09-20 
00:51:05 UTC (rev 97589)
+++ trunk/phase3/includes/profiler/ProfilerSimpleUDP.php        2011-09-20 
01:28:08 UTC (rev 97590)
@@ -13,7 +13,7 @@
        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


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to