summaryrefslogtreecommitdiff
path: root/includes/profiler/ProfilerSimpleUDP.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/profiler/ProfilerSimpleUDP.php')
-rw-r--r--includes/profiler/ProfilerSimpleUDP.php17
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 ) {