sitespeed.io
Version:
sitespeed.io is an open-source tool for comprehensive web performance analysis, enabling you to test, monitor, and optimize your website’s speed using real browsers in various environments.
16 lines (15 loc) • 318 B
JavaScript
/**
* picks the correct format for a graphite entry
* @param {string} [type='graphite'] ['statsd', 'graphite']
* @return {string} The string template
*/
export function formatEntry(type) {
switch (type) {
case 'statsd': {
return '%s:%s|ms';
}
default: {
return '%s %s %s';
}
}
}