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

Unified Diff: chrome/browser/autofill/autofill_metrics.cc

Issue 7740070: Add metrics to measure time elapsed between form load and form submission with or without Autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Once more, with feeling Created 9 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/autofill/autofill_metrics.h ('k') | chrome/browser/autofill/autofill_metrics_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_metrics.cc
diff --git a/chrome/browser/autofill/autofill_metrics.cc b/chrome/browser/autofill/autofill_metrics.cc
index c3ad14927d3f8fa9b1d597e4e08a1f2218ec6996..dae51a2816aba0818d0f2db60dd8dbf35823373d 100644
--- a/chrome/browser/autofill/autofill_metrics.cc
+++ b/chrome/browser/autofill/autofill_metrics.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "base/metrics/histogram.h"
+#include "base/time.h"
#include "chrome/browser/autofill/autofill_type.h"
#include "chrome/browser/autofill/form_structure.h"
#include "webkit/glue/form_data.h"
@@ -298,6 +299,44 @@ void AutofillMetrics::LogUserHappinessMetric(UserHappinessMetric metric) const {
NUM_USER_HAPPINESS_METRICS);
}
+void AutofillMetrics::LogFormFillDurationFromLoadWithAutofill(
+ const base::TimeDelta& duration) const {
+ UMA_HISTOGRAM_CUSTOM_TIMES("Autofill.FillDuration.FromLoad.WithAutofill",
+ duration,
+ base::TimeDelta::FromMilliseconds(100),
+ base::TimeDelta::FromMinutes(10),
+ 50);
+}
+
+void AutofillMetrics::LogFormFillDurationFromLoadWithoutAutofill(
+ const base::TimeDelta& duration) const {
+ UMA_HISTOGRAM_CUSTOM_TIMES("Autofill.FillDuration.FromLoad.WithoutAutofill",
+ duration,
+ base::TimeDelta::FromMilliseconds(100),
+ base::TimeDelta::FromMinutes(10),
+ 50);
+}
+
+void AutofillMetrics::LogFormFillDurationFromInteractionWithAutofill(
+ const base::TimeDelta& duration) const {
+ UMA_HISTOGRAM_CUSTOM_TIMES(
+ "Autofill.FillDuration.FromInteraction.WithAutofill",
+ duration,
+ base::TimeDelta::FromMilliseconds(100),
+ base::TimeDelta::FromMinutes(10),
+ 50);
+}
+
+void AutofillMetrics::LogFormFillDurationFromInteractionWithoutAutofill(
+ const base::TimeDelta& duration) const {
+ UMA_HISTOGRAM_CUSTOM_TIMES(
+ "Autofill.FillDuration.FromInteraction.WithoutAutofill",
+ duration,
+ base::TimeDelta::FromMilliseconds(100),
+ base::TimeDelta::FromMinutes(10),
+ 50);
+}
+
void AutofillMetrics::LogIsAutofillEnabledAtStartup(bool enabled) const {
UMA_HISTOGRAM_BOOLEAN("Autofill.IsEnabled.Startup", enabled);
}
« no previous file with comments | « chrome/browser/autofill/autofill_metrics.h ('k') | chrome/browser/autofill/autofill_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698