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

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

Issue 2883103002: Quantify instability according to the stability instrumentation (Closed)
Patch Set: address Siggi's 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Following an unclean shutdown, a stability report can be collected and 5 // Following an unclean shutdown, a stability report can be collected and
6 // submitted for upload to a reporter. 6 // submitted for upload to a reporter.
7 7
8 #ifndef COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_ 8 #ifndef COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_
9 #define COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_ 9 #define COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 // Virtual for unittesting. 84 // Virtual for unittesting.
85 virtual std::vector<base::FilePath> GetDebugStateFilePaths( 85 virtual std::vector<base::FilePath> GetDebugStateFilePaths(
86 const base::FilePath& debug_info_dir, 86 const base::FilePath& debug_info_dir,
87 const base::FilePath::StringType& debug_file_pattern, 87 const base::FilePath::StringType& debug_file_pattern,
88 const std::set<base::FilePath>& excluded_debug_files); 88 const std::set<base::FilePath>& excluded_debug_files);
89 89
90 CollectionStatus CollectAndSubmitOneReport( 90 CollectionStatus CollectAndSubmitOneReport(
91 const crashpad::UUID& client_id, 91 const crashpad::UUID& client_id,
92 const base::FilePath& file, 92 const base::FilePath& file,
93 crashpad::CrashReportDatabase* report_database); 93 crashpad::CrashReportDatabase* report_database,
Sigurður Ásgeirsson 2017/05/18 12:45:03 A single session can only contribute a single coun
manzagop (departed) 2017/05/18 14:52:12 Done.
94 int* unclean_system_cnt);
94 95
95 virtual CollectionStatus CollectOneReport( 96 virtual CollectionStatus CollectOneReport(
96 const base::FilePath& stability_file, 97 const base::FilePath& stability_file,
97 StabilityReport* report); 98 StabilityReport* report);
98 99
99 void SetReporterDetails(StabilityReport* report) const; 100 void SetReporterDetails(StabilityReport* report) const;
100 101
101 void RecordSystemShutdownState(StabilityReport* report) const; 102 void RecordSystemShutdownState(StabilityReport* report) const;
102 103
103 virtual bool WriteReportToMinidump(StabilityReport* report, 104 virtual bool WriteReportToMinidump(StabilityReport* report,
104 const crashpad::UUID& client_id, 105 const crashpad::UUID& client_id,
105 const crashpad::UUID& report_id, 106 const crashpad::UUID& report_id,
106 base::PlatformFile minidump_file); 107 base::PlatformFile minidump_file);
107 108
108 std::string product_name_; 109 std::string product_name_;
109 std::string version_number_; 110 std::string version_number_;
110 std::string channel_name_; 111 std::string channel_name_;
111 112
112 SystemSessionAnalyzer* system_session_analyzer_; // Not owned. 113 SystemSessionAnalyzer* system_session_analyzer_; // Not owned.
113 114
114 DISALLOW_COPY_AND_ASSIGN(PostmortemReportCollector); 115 DISALLOW_COPY_AND_ASSIGN(PostmortemReportCollector);
115 }; 116 };
116 117
117 } // namespace browser_watcher 118 } // namespace browser_watcher
118 119
119 #endif // COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_ 120 #endif // COMPONENTS_BROWSER_WATCHER_POSTMORTEM_REPORT_COLLECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698