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

Side by Side Diff: components/browser_watcher/stability_metrics.h

Issue 2910003002: Stability instrumentation: metrics for collection on crash (Closed)
Patch Set: address rkaplow comments Created 3 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_BROWSER_WATCHER_STABILITY_METRICS_H_
6 #define COMPONENTS_BROWSER_WATCHER_STABILITY_METRICS_H_
7
8 namespace browser_watcher {
9
10 // DO NOT REMOVE OR REORDER VALUES. This is logged persistently in a histogram.
11 enum class CollectOnCrashEvent {
12 kCollectAttempt,
13 kUserDataDirNotEmpty,
14 kPathExists,
15 kReportExtractionSuccess,
16 kPmaSetDeletedFailed,
17 kOpenForDeleteFailed,
18 kSuccess,
19 // New values go here.
20 kCollectOnCrashEventMax
21 };
22
23 // DO NOT REMOVE OR REORDER VALUES. This is logged persistently in a histogram.
24 enum class StabilityRecordEvent {
25 kRecordAttempt,
26 kStabilityDirectoryExists,
27 kGotStabilityPath,
28 kGotTracker,
29 kMarkDeleted,
30 kMarkDeletedGotFile,
31 kOpenForDeleteFailed,
32 // New values go here.
33 kStabilityRecordEventMax
34 };
35
36 void LogCollectOnCrashEvent(CollectOnCrashEvent event);
37 void LogStabilityRecordEvent(StabilityRecordEvent event);
38
39 } // namespace browser_watcher
40
41 #endif // COMPONENTS_BROWSER_WATCHER_STABILITY_METRICS_H_
OLDNEW
« no previous file with comments | « components/browser_watcher/postmortem_report_collector.cc ('k') | components/browser_watcher/stability_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698