summaryrefslogtreecommitdiff
path: root/includes/ProfilerSimpleUDP.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/ProfilerSimpleUDP.php')
-rw-r--r--includes/ProfilerSimpleUDP.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/includes/ProfilerSimpleUDP.php b/includes/ProfilerSimpleUDP.php
index 7d2f7e21..67ad97f6 100644
--- a/includes/ProfilerSimpleUDP.php
+++ b/includes/ProfilerSimpleUDP.php
@@ -1,17 +1,19 @@
<?php
+/**
+ * @file
+ * @ingroup Profiler
+ */
-require_once(dirname(__FILE__).'/Profiler.php');
require_once(dirname(__FILE__).'/ProfilerSimple.php');
/**
* ProfilerSimpleUDP class, that sends out messages for 'udpprofile' daemon
* (the one from mediawiki/trunk/udpprofile SVN )
- * @addtogroup Profiler
+ * @ingroup Profiler
*/
class ProfilerSimpleUDP extends ProfilerSimple {
function getFunctionReport() {
- global $wgUDPProfilerHost;
- global $wgUDPProfilerPort;
+ global $wgUDPProfilerHost, $wgUDPProfilerPort;
if ( $this->mCollated['-total']['real'] < $this->mMinimumTime ) {
# Less than minimum, ignore
@@ -37,4 +39,3 @@ class ProfilerSimpleUDP extends ProfilerSimple {
socket_sendto($sock,$packet,$plength,0x100,$wgUDPProfilerHost,$wgUDPProfilerPort);
}
}
-