r97590 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97589‎ | r97590 | r97591 >
Date:01:28, 20 September 2011
Author:tstarling
Status:ok
Tags:
Comment:
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) (history)

Diff [purge]

Index: trunk/phase3/includes/profiler/ProfilerSimpleUDP.php
@@ -13,7 +13,7 @@
1414 public function logData() {
1515 global $wgUDPProfilerHost, $wgUDPProfilerPort;
1616
17 - $this->collateData();
 17+ $this->close();
1818
1919 if ( isset( $this->mCollated['-total'] ) && $this->mCollated['-total']['real'] < $this->mMinimumTime ) {
2020 # Less than minimum, ignore

Follow-up revisions

RevisionCommit summaryAuthorDate
r97591MFT r97590: fixed ProfilerSimpleUDP total breakagetstarling01:31, 20 September 2011
r97612REL1_18: MFT r97590, r97583reedy10:04, 20 September 2011

Status & tagging log