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

Side by Side Diff: components/browser_watcher/watcher_metrics_provider_win.cc

Issue 2531123002: Record MetricsService's execution phase to the stability file (Closed)
Patch Set: fix issue with incorrect kStabilityExecutionPhase Created 4 years 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
« no previous file with comments | « components/browser_watcher/stability_debugging_win.cc ('k') | components/metrics/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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 #include "components/browser_watcher/watcher_metrics_provider_win.h" 5 #include "components/browser_watcher/watcher_metrics_provider_win.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <memory> 10 #include <memory>
11 #include <set> 11 #include <set>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/feature_list.h" 15 #include "base/feature_list.h"
16 #include "base/metrics/histogram.h" 16 #include "base/metrics/histogram.h"
17 #include "base/metrics/histogram_base.h" 17 #include "base/metrics/histogram_base.h"
18 #include "base/metrics/histogram_macros.h" 18 #include "base/metrics/histogram_macros.h"
19 #include "base/metrics/sparse_histogram.h" 19 #include "base/metrics/sparse_histogram.h"
20 #include "base/process/process.h" 20 #include "base/process/process.h"
21 #include "base/strings/string_number_conversions.h" 21 #include "base/strings/string_number_conversions.h"
22 #include "base/strings/string_piece.h" 22 #include "base/strings/string_piece.h"
23 #include "base/strings/utf_string_conversions.h" 23 #include "base/strings/utf_string_conversions.h"
24 #include "base/win/registry.h" 24 #include "base/win/registry.h"
25 #include "components/browser_watcher/features.h" 25 #include "components/browser_watcher/features.h"
26 #include "components/browser_watcher/postmortem_report_collector.h" 26 #include "components/browser_watcher/postmortem_report_collector.h"
27 #include "components/browser_watcher/stability_debugging_win.h" 27 #include "components/browser_watcher/stability_debugging.h"
28 #include "third_party/crashpad/crashpad/client/crash_report_database.h" 28 #include "third_party/crashpad/crashpad/client/crash_report_database.h"
29 29
30 namespace browser_watcher { 30 namespace browser_watcher {
31 31
32 namespace { 32 namespace {
33 33
34 // Process ID APIs on Windows talk in DWORDs, whereas for string formatting 34 // Process ID APIs on Windows talk in DWORDs, whereas for string formatting
35 // and parsing, this code uses int. In practice there are no process IDs with 35 // and parsing, this code uses int. In practice there are no process IDs with
36 // the high bit set on Windows, so there's no danger of overflow if this is 36 // the high bit set on Windows, so there's no danger of overflow if this is
37 // done consistently. 37 // done consistently.
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 exe_details_cb_.Run(&product_name, &version_number, &channel_name); 268 exe_details_cb_.Run(&product_name, &version_number, &channel_name);
269 PostmortemReportCollector collector(base::UTF16ToUTF8(product_name), 269 PostmortemReportCollector collector(base::UTF16ToUTF8(product_name),
270 base::UTF16ToUTF8(version_number), 270 base::UTF16ToUTF8(version_number),
271 base::UTF16ToUTF8(channel_name)); 271 base::UTF16ToUTF8(channel_name));
272 collector.CollectAndSubmitForUpload(stability_dir, GetStabilityFilePattern(), 272 collector.CollectAndSubmitForUpload(stability_dir, GetStabilityFilePattern(),
273 excluded_debug_files, 273 excluded_debug_files,
274 crashpad_database.get()); 274 crashpad_database.get());
275 } 275 }
276 276
277 } // namespace browser_watcher 277 } // namespace browser_watcher
OLDNEW
« no previous file with comments | « components/browser_watcher/stability_debugging_win.cc ('k') | components/metrics/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698