diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:12:12 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:12:12 -0400 |
commit | c9aa36da061816dee256a979c2ff8d2ee41824d9 (patch) | |
tree | 29f7002b80ee984b488bd047dbbd80b36bf892e9 /includes/profiler/ProfilerSimpleUDP.php | |
parent | b4274e0e33eafb5e9ead9d949ebf031a9fb8363b (diff) | |
parent | d1ba966140d7a60cd5ae4e8667ceb27c1a138592 (diff) |
Merge branch 'archwiki'
# Conflicts:
# skins/ArchLinux.php
# skins/ArchLinux/archlogo.gif
Diffstat (limited to 'includes/profiler/ProfilerSimpleUDP.php')
-rw-r--r-- | includes/profiler/ProfilerSimpleUDP.php | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/includes/profiler/ProfilerSimpleUDP.php b/includes/profiler/ProfilerSimpleUDP.php index 0a1f3b10..627b4de2 100644 --- a/includes/profiler/ProfilerSimpleUDP.php +++ b/includes/profiler/ProfilerSimpleUDP.php @@ -23,10 +23,15 @@ /** * ProfilerSimpleUDP class, that sends out messages for 'udpprofile' daemon - * (the one from mediawiki/trunk/udpprofile SVN ) + * (the one from + * http://git.wikimedia.org/tree/operations%2Fsoftware.git/master/udpprofile) * @ingroup Profiler */ -class ProfilerSimpleUDP extends ProfilerSimple { +class ProfilerSimpleUDP extends ProfilerStandard { + protected function collateOnly() { + return true; + } + public function isPersistent() { return true; } @@ -36,11 +41,6 @@ class ProfilerSimpleUDP extends ProfilerSimple { $this->close(); - if ( isset( $this->mCollated['-total'] ) && $this->mCollated['-total']['real'] < $this->mMinimumTime ) { - # Less than minimum, ignore - return; - } - if ( !function_exists( 'socket_create' ) ) { # Sockets are not enabled return; @@ -58,7 +58,8 @@ class ProfilerSimpleUDP extends ProfilerSimple { continue; } $pfline = sprintf( $wgUDPProfilerFormatString, $this->getProfileID(), $pfdata['count'], - $pfdata['cpu'], $pfdata['cpu_sq'], $pfdata['real'], $pfdata['real_sq'], $entry ); + $pfdata['cpu'], $pfdata['cpu_sq'], $pfdata['real'], $pfdata['real_sq'], $entry, + $pfdata['memory'] ); $length = strlen( $pfline ); /* printf("<!-- $pfline -->"); */ if ( $length + $plength > 1400 ) { |