/**
* Logs an event.
* @param {string} name The name of the event (can be any string).
- * @param {boolean} shouldLogTime If true, the event is used for benchmarking
- * and the time is logged. Otherwise, just push the event on the event
- * stack.
+ * @param {boolean=} opt_shouldLogTime If true, the event is used for
+ * benchmarking and the time is logged. Otherwise, just push the event on
+ * the event stack.
*/
-function logEvent(name, shouldLogTime) {
- if (shouldLogTime)
+function logEvent(name, opt_shouldLogTime) {
+ if (opt_shouldLogTime)
chrome.send('metricsHandler:logEventTime', [name]);
eventLog.push([name, Date.now()]);
}