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

Issue 2715903003: Bound the impact of system instability on chrome instability. (Closed)

Created:
3 years, 10 months ago by manzagop (departed)
Modified:
3 years, 9 months ago
CC:
chromium-reviews, bcwhite
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Bound the impact of system instability on chrome instability. Add to stability reports whether the containing system session was clean. This information is derived in the following way: - add a timestamp to the stability file when chrome starts - when processing unclean chrome shutdowns, inspect the system event logs for the past X sessions and interpret the stability file timestamps in that context The log inspection and analysis is in system_session_analyzer_win*, the rest is plumbing. BUG=695987 Review-Url: https://codereview.chromium.org/2715903003 Cr-Commit-Position: refs/heads/master@{#455476} Committed: https://chromium.googlesource.com/chromium/src/+/deb62bfb3b4c7c2b78d6b6205766d9cf10ca39a0

Patch Set 1 #

Patch Set 2 : Wire it in #

Patch Set 3 : record start timestamp, analysis metric, make log scrape lazy #

Total comments: 4

Patch Set 4 : wfh comments #

Patch Set 5 : BUILD fixup #

Patch Set 6 : style + size mismatches #

Patch Set 7 : Don't inline complex destructors #

Total comments: 20

Patch Set 8 : Address siggi@ comments #

Total comments: 21

Patch Set 9 : Address Siggi's comments #

Total comments: 26

Patch Set 10 : Address Siggi's comments #

Total comments: 8

Patch Set 11 : Merge #

Patch Set 12 : Address Siggi's comments #

Patch Set 13 : Merge #

Patch Set 14 : Merge #

Patch Set 15 : Merge fixups #

Unified diffs Side-by-side diffs Delta from patch set Stats (+722 lines, -70 lines) Patch
M chrome/browser/chrome_browser_field_trials_desktop.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -0 lines 0 comments Download
M components/browser_watcher/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +17 lines, -17 lines 0 comments Download
A components/browser_watcher/fetch_system_session_events_main_win.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +48 lines, -0 lines 0 comments Download
M components/browser_watcher/postmortem_report_collector.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +17 lines, -5 lines 0 comments Download
M components/browser_watcher/postmortem_report_collector.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +99 lines, -13 lines 0 comments Download
M components/browser_watcher/postmortem_report_collector_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 chunks +60 lines, -26 lines 0 comments Download
M components/browser_watcher/stability_data_names.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/browser_watcher/stability_data_names.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/browser_watcher/stability_report.proto View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -2 lines 0 comments Download
A components/browser_watcher/system_session_analyzer_win.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +75 lines, -0 lines 0 comments Download
A components/browser_watcher/system_session_analyzer_win.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +244 lines, -0 lines 0 comments Download
A components/browser_watcher/system_session_analyzer_win_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +117 lines, -0 lines 0 comments Download
M components/browser_watcher/watcher_metrics_provider_win.cc View 1 2 3 4 5 6 7 8 9 3 chunks +12 lines, -7 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 58 (37 generated)
manzagop (departed)
Hi Brian, (+Will, optional / FYI) This change is to look at the event log ...
3 years, 9 months ago (2017-02-27 22:28:39 UTC) #4
Will Harris
driveby but Q. when is this analysis done and on which thread?
3 years, 9 months ago (2017-02-27 22:36:44 UTC) #5
Will Harris
also had some nits https://codereview.chromium.org/2715903003/diff/40001/components/browser_watcher/postmortem_report_collector.h File components/browser_watcher/postmortem_report_collector.h (right): https://codereview.chromium.org/2715903003/diff/40001/components/browser_watcher/postmortem_report_collector.h#newcode109 components/browser_watcher/postmortem_report_collector.h:109: void DetermineSystemSate(StabilityReport* report) const; typo ...
3 years, 9 months ago (2017-02-27 22:40:11 UTC) #7
manzagop (departed)
On 2017/02/27 22:36:44, Will Harris wrote: > driveby but Q. when is this analysis done ...
3 years, 9 months ago (2017-02-27 22:49:43 UTC) #8
manzagop (departed)
Looks like Brian is OOO this week. Will: do you think you could take a ...
3 years, 9 months ago (2017-02-28 14:51:51 UTC) #12
manzagop (departed)
Hi Siggi, Brian is OOO this week. Could you have a look? Thanks!
3 years, 9 months ago (2017-02-28 19:00:17 UTC) #24
Sigurður Ásgeirsson
nice, didn't review logic in great detail yet. https://codereview.chromium.org/2715903003/diff/120001/components/browser_watcher/BUILD.gn File components/browser_watcher/BUILD.gn (right): https://codereview.chromium.org/2715903003/diff/120001/components/browser_watcher/BUILD.gn#newcode101 components/browser_watcher/BUILD.gn:101: static_library("system_session_analyzer") ...
3 years, 9 months ago (2017-03-01 15:09:27 UTC) #29
manzagop (departed)
Addressed comments. Please have another look. https://codereview.chromium.org/2715903003/diff/120001/components/browser_watcher/BUILD.gn File components/browser_watcher/BUILD.gn (right): https://codereview.chromium.org/2715903003/diff/120001/components/browser_watcher/BUILD.gn#newcode101 components/browser_watcher/BUILD.gn:101: static_library("system_session_analyzer") { On ...
3 years, 9 months ago (2017-03-01 21:07:46 UTC) #32
Sigurður Ásgeirsson
nice - got some more thoughts. https://codereview.chromium.org/2715903003/diff/140001/components/browser_watcher/postmortem_report_collector.cc File components/browser_watcher/postmortem_report_collector.cc (right): https://codereview.chromium.org/2715903003/diff/140001/components/browser_watcher/postmortem_report_collector.cc#newcode350 components/browser_watcher/postmortem_report_collector.cc:350: // Note: a ...
3 years, 9 months ago (2017-03-02 21:52:58 UTC) #35
manzagop (departed)
Thanks! Another look? https://codereview.chromium.org/2715903003/diff/140001/components/browser_watcher/postmortem_report_collector.cc File components/browser_watcher/postmortem_report_collector.cc (right): https://codereview.chromium.org/2715903003/diff/140001/components/browser_watcher/postmortem_report_collector.cc#newcode350 components/browser_watcher/postmortem_report_collector.cc:350: // Note: a single process is ...
3 years, 9 months ago (2017-03-06 15:37:41 UTC) #36
Sigurður Ásgeirsson
Phew - very nice. I have moar nits. https://codereview.chromium.org/2715903003/diff/140001/components/browser_watcher/postmortem_report_collector.cc File components/browser_watcher/postmortem_report_collector.cc (right): https://codereview.chromium.org/2715903003/diff/140001/components/browser_watcher/postmortem_report_collector.cc#newcode429 components/browser_watcher/postmortem_report_collector.cc:429: UMA_HISTOGRAM_ENUMERATION( ...
3 years, 9 months ago (2017-03-06 19:00:10 UTC) #37
manzagop (departed)
Thanks! Another look? https://codereview.chromium.org/2715903003/diff/160001/components/browser_watcher/postmortem_report_collector.cc File components/browser_watcher/postmortem_report_collector.cc (right): https://codereview.chromium.org/2715903003/diff/160001/components/browser_watcher/postmortem_report_collector.cc#newcode192 components/browser_watcher/postmortem_report_collector.cc:192: int PostmortemReportCollector::CollectAndSubmitForUpload( On 2017/03/06 19:00:09, Sigurður ...
3 years, 9 months ago (2017-03-06 21:14:42 UTC) #38
Sigurður Ásgeirsson
lgtm https://codereview.chromium.org/2715903003/diff/180001/components/browser_watcher/fetch_system_session_events_main_win.cc File components/browser_watcher/fetch_system_session_events_main_win.cc (right): https://codereview.chromium.org/2715903003/diff/180001/components/browser_watcher/fetch_system_session_events_main_win.cc#newcode14 components/browser_watcher/fetch_system_session_events_main_win.cc:14: using browser_watcher::SystemSessionEventFetcher; ubernit: put this in the sole ...
3 years, 9 months ago (2017-03-07 14:38:39 UTC) #39
manzagop (departed)
Thanks for the review! https://codereview.chromium.org/2715903003/diff/180001/components/browser_watcher/fetch_system_session_events_main_win.cc File components/browser_watcher/fetch_system_session_events_main_win.cc (right): https://codereview.chromium.org/2715903003/diff/180001/components/browser_watcher/fetch_system_session_events_main_win.cc#newcode14 components/browser_watcher/fetch_system_session_events_main_win.cc:14: using browser_watcher::SystemSessionEventFetcher; On 2017/03/07 14:38:39, ...
3 years, 9 months ago (2017-03-07 15:49:02 UTC) #40
manzagop (departed)
Hi Jesse! Could you have an OWNERS' look at: chrome\browser\chrome_browser_field_trials_desktop.cc tools\metrics\histograms\histograms.xml Thanks! Pierre
3 years, 9 months ago (2017-03-07 15:50:13 UTC) #42
jwd
lgtm
3 years, 9 months ago (2017-03-07 22:36:43 UTC) #47
manzagop (departed)
Thanks for the reviews. Going ahead with submission.
3 years, 9 months ago (2017-03-08 15:19:34 UTC) #48
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/2715903003/250015
3 years, 9 months ago (2017-03-08 15:19:50 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/246494)
3 years, 9 months ago (2017-03-08 16:06:34 UTC) #53
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/2715903003/250015
3 years, 9 months ago (2017-03-08 16:11:16 UTC) #55
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 17:00:56 UTC) #58
Message was sent while issue was closed.
Committed patchset #15 (id:250015) as
https://chromium.googlesource.com/chromium/src/+/deb62bfb3b4c7c2b78d6b6205766...

Powered by Google App Engine
This is Rietveld 408576698