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

Unified Diff: components/browser_watcher/stability_metrics.cc

Issue 2910003002: Stability instrumentation: metrics for collection on crash (Closed)
Patch Set: address rkaplow comments Created 3 years, 7 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 | « components/browser_watcher/stability_metrics.h ('k') | components/browser_watcher/stability_paths.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_watcher/stability_metrics.cc
diff --git a/components/browser_watcher/stability_metrics.cc b/components/browser_watcher/stability_metrics.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0ec6675db985c1bb6a4a9159f4f567cd2a2fd029
--- /dev/null
+++ b/components/browser_watcher/stability_metrics.cc
@@ -0,0 +1,21 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/browser_watcher/stability_metrics.h"
+
+#include "base/metrics/histogram_macros.h"
+
+namespace browser_watcher {
+
+void LogCollectOnCrashEvent(CollectOnCrashEvent event) {
+ UMA_HISTOGRAM_ENUMERATION("ActivityTracker.CollectCrash.Event", event,
+ CollectOnCrashEvent::kCollectOnCrashEventMax);
+}
+
+void LogStabilityRecordEvent(StabilityRecordEvent event) {
+ UMA_HISTOGRAM_ENUMERATION("ActivityTracker.Record.Event", event,
+ StabilityRecordEvent::kStabilityRecordEventMax);
+}
+
+} // namespace browser_watcher
« no previous file with comments | « components/browser_watcher/stability_metrics.h ('k') | components/browser_watcher/stability_paths.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698