public function StatsD::timing in StatsD 7.2
Same name and namespace in other branches
- 6 includes/statsd.inc \StatsD::timing()
- 7 includes/statsd.inc \StatsD::timing()
Log timing information
Parameters
$stat: A string of the metric to log timing info for.
$time: The ellapsed time (ms) to log
$sample_rate: A float between 0 and 1 representing the sampling rate.
File
- includes/
statsd.inc, line 65
Class
- StatsD
- Sends statistics to the stats daemon over UDP.
Code
public function timing($stat, $time, $sample_rate = NULL) {
$this
->send(array(
$stat => "{$time}|ms",
), $sample_rate);
}