wiki.techinc.nl/includes/profiler
Ori Livneh 2bad0b9664 Make the format of UDP-logged stats configurable
The format of datagrams generated by StatCounter and ProfilerSimpleUDP is not
described by any standard and appears to have been designed for compatibility
with the logging setup of the Wikimedia Foundation, which limits reusability.

This patch adds two configuration variables, $wgUDPProfilerFormatString and
$wgStatsFormatString, that can be used to specify the precise format that
MediaWiki will use. The default values for these variables causes MediaWiki to
generate the same output as before.

The secret evil plan is to change the defaults so that MediaWiki emits metrics
that are compatible with the popular StatsD format (see
<https://github.com/b/statsd_spec>). This would allow us to replace udpprofiler
with a generic StatsD instance instead.

Change-Id: Iaf00811d3f8d6b89c1c68e84fc1f2c93425d5a2d
2013-10-04 22:52:02 -07:00
..
Profiler.php No spaces after (casts) 2013-09-04 20:05:43 +02:00
ProfilerSimple.php profiler: log slow methods that worsen DB locks in transactions 2013-07-19 03:46:55 +00:00
ProfilerSimpleText.php Added/Removed spaces around string concatenation 2013-04-13 13:36:24 +02:00
ProfilerSimpleTrace.php profiler: log slow methods that worsen DB locks in transactions 2013-07-19 03:46:55 +00:00
ProfilerSimpleUDP.php Make the format of UDP-logged stats configurable 2013-10-04 22:52:02 -07:00
ProfilerStub.php profiler: log slow methods that worsen DB locks in transactions 2013-07-19 03:46:55 +00:00