Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1641)

Unified Diff: chrome/browser/ui/webui/metrics_handler.h

Issue 2203263002: History: Add load-time metric for non-MD and MD History WebUI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: isherman@ review Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/md_history/history.js ('k') | chrome/browser/ui/webui/metrics_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/metrics_handler.h
diff --git a/chrome/browser/ui/webui/metrics_handler.h b/chrome/browser/ui/webui/metrics_handler.h
index 15ad9432ceae4010281a79bbfb74ef4a2dc46ba5..ccf4f55ccd31a0d53380b0a4f31368ca30a02ab4 100644
--- a/chrome/browser/ui/webui/metrics_handler.h
+++ b/chrome/browser/ui/webui/metrics_handler.h
@@ -44,6 +44,11 @@ class MetricsHandler : public content::WebUIMessageHandler {
// depending on the maximum value.
void HandleRecordInHistogram(const base::ListValue* args);
+ // Record a millisecond time value in a histogram, similar to
+ // UMA_HISTOGRAM_TIMES. Handles times between 1ms and 10sec. |args|
+ // contains the histogram name and a value in milliseconds.
+ void HandleRecordTime(const base::ListValue* args);
+
// Callback for the "metricsHandler:logEventTime" message.
void HandleLogEventTime(const base::ListValue* args);
« no previous file with comments | « chrome/browser/resources/md_history/history.js ('k') | chrome/browser/ui/webui/metrics_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698