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

Issue 2344343002: Wire in postmortem report collection (Closed)

Created:
4 years, 3 months ago by manzagop (departed)
Modified:
3 years, 7 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, bcwhite
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Wire in postmortem report collection Wires in postmortem report collection, which harvests unclean shutdown debug information to a protocol buffer, wraps this proto inside a barebone minidump and registers the minidump with CrashPad for upload. Reports are collected as part of the metrics service client initialization task chain. Stability file naming is revised so a unique file name is used every time. Notes: - This is experimental work that currently only targets the windows canary channel (using an experiment). - CrashPad handles consent checking/uploading/throttling. - Manufacturing the minidump is a temporary approach. Longer term, Crashpad should handle it. - This first version also collects reports for crashes. Longer term, the reports pertaining to crashes will be bundled with the crash reports. TEST - launch chrome with the stability instrumentation (--enable-features=StabilityDebugging) - crash chrome by visiting chrome://chrome://inducebrowsercrashforrealz - Validate the existence of a stability file in <user-data-dir>/Stability - start chrome again - validate "ActivityTracker.Collect.*" metrics chrome://histograms/ActivityTracker - validate the presence of a new crash at chrome://crashes BUG=620813 Committed: https://crrev.com/f232266b5ba25df15843ee2589e795413ee71371 Cr-Commit-Position: refs/heads/master@{#421172}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address first round #

Total comments: 4

Patch Set 3 : Address Siggi's second round #

Total comments: 18

Patch Set 4 : Address comments #

Patch Set 5 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+486 lines, -33 lines) Patch
M chrome/browser/chrome_browser_field_trials_desktop.cc View 1 2 3 3 chunks +50 lines, -13 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.h View 3 chunks +14 lines, -2 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 3 4 3 chunks +24 lines, -4 lines 0 comments Download
M components/browser_watcher/BUILD.gn View 2 chunks +15 lines, -0 lines 0 comments Download
A components/browser_watcher/features.h View 1 chunk +16 lines, -0 lines 0 comments Download
A components/browser_watcher/features.cc View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A components/browser_watcher/stability_debugging_win.h View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
A components/browser_watcher/stability_debugging_win.cc View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
A components/browser_watcher/stability_debugging_win_unittest.cc View 1 2 3 1 chunk +85 lines, -0 lines 0 comments Download
M components/browser_watcher/watcher_metrics_provider_win.h View 2 chunks +31 lines, -4 lines 0 comments Download
M components/browser_watcher/watcher_metrics_provider_win.cc View 1 2 3 5 chunks +93 lines, -4 lines 0 comments Download
M components/browser_watcher/watcher_metrics_provider_win_unittest.cc View 5 chunks +11 lines, -5 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 3 chunks +43 lines, -1 line 0 comments Download

Messages

Total messages: 37 (15 generated)
manzagop (departed)
This is the last part extracted from https://codereview.chromium.org/2128683002/ . Please have a look! Thanks, Pierre
4 years, 3 months ago (2016-09-16 21:39:09 UTC) #2
Sigurður Ásgeirsson
nice! https://codereview.chromium.org/2344343002/diff/1/chrome/browser/chrome_browser_field_trials_desktop.cc File chrome/browser/chrome_browser_field_trials_desktop.cc (right): https://codereview.chromium.org/2344343002/diff/1/chrome/browser/chrome_browser_field_trials_desktop.cc#newcode72 chrome/browser/chrome_browser_field_trials_desktop.cc:72: LOG(ERROR) << "Failed to create the stability directory."; ...
4 years, 3 months ago (2016-09-19 14:20:05 UTC) #3
manzagop (departed)
Addressed comments. Another look? https://codereview.chromium.org/2344343002/diff/1/chrome/browser/chrome_browser_field_trials_desktop.cc File chrome/browser/chrome_browser_field_trials_desktop.cc (right): https://codereview.chromium.org/2344343002/diff/1/chrome/browser/chrome_browser_field_trials_desktop.cc#newcode72 chrome/browser/chrome_browser_field_trials_desktop.cc:72: LOG(ERROR) << "Failed to create ...
4 years, 2 months ago (2016-09-21 22:00:44 UTC) #4
Sigurður Ásgeirsson
nice, lgtm except for a couple of performance nits. https://codereview.chromium.org/2344343002/diff/20001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/2344343002/diff/20001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode634 chrome/browser/metrics/chrome_metrics_service_client.cc:634: ...
4 years, 2 months ago (2016-09-22 13:06:12 UTC) #5
manzagop (departed)
Addressed comments! You may want to have another quick look. https://codereview.chromium.org/2344343002/diff/20001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/2344343002/diff/20001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode634 ...
4 years, 2 months ago (2016-09-22 15:41:57 UTC) #6
manzagop (departed)
Hi Alexei, Here's the collection of the postmortem stability reports we discussed, as part of ...
4 years, 2 months ago (2016-09-22 15:44:24 UTC) #8
Sigurður Ásgeirsson
lgtm https://codereview.chromium.org/2344343002/diff/40001/chrome/browser/chrome_browser_field_trials_desktop.cc File chrome/browser/chrome_browser_field_trials_desktop.cc (right): https://codereview.chromium.org/2344343002/diff/40001/chrome/browser/chrome_browser_field_trials_desktop.cc#newcode67 chrome/browser/chrome_browser_field_trials_desktop.cc:67: base::HistogramBase* init_status_hist = base::LinearHistogram::FactoryGet( Ah - I see. ...
4 years, 2 months ago (2016-09-22 15:46:14 UTC) #9
Alexei Svitkine (slow)
https://codereview.chromium.org/2344343002/diff/40001/chrome/browser/chrome_browser_field_trials_desktop.cc File chrome/browser/chrome_browser_field_trials_desktop.cc (right): https://codereview.chromium.org/2344343002/diff/40001/chrome/browser/chrome_browser_field_trials_desktop.cc#newcode67 chrome/browser/chrome_browser_field_trials_desktop.cc:67: base::HistogramBase* init_status_hist = base::LinearHistogram::FactoryGet( On 2016/09/22 15:46:14, Sigurður Ásgeirsson ...
4 years, 2 months ago (2016-09-23 14:13:54 UTC) #10
manzagop (departed)
Addressed comments! Please have another look! https://codereview.chromium.org/2344343002/diff/40001/chrome/browser/chrome_browser_field_trials_desktop.cc File chrome/browser/chrome_browser_field_trials_desktop.cc (right): https://codereview.chromium.org/2344343002/diff/40001/chrome/browser/chrome_browser_field_trials_desktop.cc#newcode67 chrome/browser/chrome_browser_field_trials_desktop.cc:67: base::HistogramBase* init_status_hist = ...
4 years, 2 months ago (2016-09-23 21:57:02 UTC) #12
Sigurður Ásgeirsson
still lgtm https://codereview.chromium.org/2344343002/diff/40001/chrome/browser/chrome_browser_field_trials_desktop.cc File chrome/browser/chrome_browser_field_trials_desktop.cc (right): https://codereview.chromium.org/2344343002/diff/40001/chrome/browser/chrome_browser_field_trials_desktop.cc#newcode67 chrome/browser/chrome_browser_field_trials_desktop.cc:67: base::HistogramBase* init_status_hist = base::LinearHistogram::FactoryGet( On 2016/09/23 14:13:53, ...
4 years, 2 months ago (2016-09-26 15:22:25 UTC) #13
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2344343002/diff/40001/chrome/browser/chrome_browser_field_trials_desktop.cc File chrome/browser/chrome_browser_field_trials_desktop.cc (right): https://codereview.chromium.org/2344343002/diff/40001/chrome/browser/chrome_browser_field_trials_desktop.cc#newcode67 chrome/browser/chrome_browser_field_trials_desktop.cc:67: base::HistogramBase* init_status_hist = base::LinearHistogram::FactoryGet( On 2016/09/26 15:22:25, Sigurður ...
4 years, 2 months ago (2016-09-26 15:29:49 UTC) #14
manzagop (departed)
Thanks for the reviews!
4 years, 2 months ago (2016-09-26 15:42:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2344343002/100001
4 years, 2 months ago (2016-09-26 18:52:22 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/286416)
4 years, 2 months ago (2016-09-26 19:51:18 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2344343002/100001
4 years, 2 months ago (2016-09-26 20:46:39 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/286564)
4 years, 2 months ago (2016-09-26 22:10:39 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2344343002/100001
4 years, 2 months ago (2016-09-27 10:50:11 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 2 months ago (2016-09-27 11:40:22 UTC) #31
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/f232266b5ba25df15843ee2589e795413ee71371 Cr-Commit-Position: refs/heads/master@{#421172}
4 years, 2 months ago (2016-09-27 11:42:14 UTC) #33
Nico
You didn't add stability_debugging_win_unittest.cc to any .gn files as far as I can tell. Want ...
3 years, 7 months ago (2017-04-27 15:31:49 UTC) #35
manzagop (departed)
On 2017/04/27 15:31:49, Nico wrote: > You didn't add stability_debugging_win_unittest.cc to any .gn files as ...
3 years, 7 months ago (2017-04-27 20:57:58 UTC) #36
manzagop (departed)
3 years, 7 months ago (2017-04-28 17:47:46 UTC) #37
Message was sent while issue was closed.
On 2017/04/27 20:57:58, manzagop (OOO until April 27) wrote:
> On 2017/04/27 15:31:49, Nico wrote:
> > You didn't add stability_debugging_win_unittest.cc to any .gn files as far
as
> I
> > can tell. Want to send a follow-up for that?
> 
> Thanks. Will do!

For reference, the CL to fix it is out for review: 
https://codereview.chromium.org/2852693003/

Powered by Google App Engine
This is Rietveld 408576698