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

Unified Diff: components/browser_watcher/stability_report_user_stream_data_source.cc

Issue 2910003002: Stability instrumentation: metrics for collection on crash (Closed)
Patch Set: 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 | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_watcher/stability_report_user_stream_data_source.cc
diff --git a/components/browser_watcher/stability_report_user_stream_data_source.cc b/components/browser_watcher/stability_report_user_stream_data_source.cc
index 62fdf2235edd63531b4c6d53b8985b846af9632d..928e7eb91419c90e0bdc2847327f1b9b5a0b77d0 100644
--- a/components/browser_watcher/stability_report_user_stream_data_source.cc
+++ b/components/browser_watcher/stability_report_user_stream_data_source.cc
@@ -73,6 +73,8 @@ bool BufferExtensionStreamDataSource::ReadStreamData(Delegate* delegate) {
data_.size() ? data_.data() : nullptr, data_.size());
}
+// TODO(manzagop): collection should factor in whether this is a true crash or
+// dump without crashing.
std::unique_ptr<BufferExtensionStreamDataSource> CollectReport(
const base::FilePath& path) {
StabilityReport report;
@@ -91,6 +93,8 @@ std::unique_ptr<BufferExtensionStreamDataSource> CollectReport(
base::File::FLAG_DELETE_ON_CLOSE);
UMA_HISTOGRAM_BOOLEAN("ActivityTracker.CollectCrash.OpenForDeleteSuccess",
file.IsValid());
+ UMA_STABILITY_HISTOGRAM_COUNTS_100("ActivityTracker.CollectCrash.CrashCount",
Sigurður Ásgeirsson 2017/05/30 13:46:37 QQ: is this the best way to record this? I've seen
manzagop (departed) 2017/05/30 16:16:54 I'd want the metric to be usable in a timeline for
+ 1);
std::unique_ptr<BufferExtensionStreamDataSource> source(
new BufferExtensionStreamDataSource(kStabilityReportStreamType));
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698