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

Issue 2910003002: Stability instrumentation: metrics for collection on crash (Closed)

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

Description

Stability instrumentation: metrics for collection on crash This CL revises adds metrics for stability instrumentation collection on crash. The metrics can be used to estimate unclean shutdown coverage in combination with postmortem collection (see https://crrev.com/2883103002). Additionally addresses a todo: sets the persitent allocator state to deleted on crash. BUG=620813 Review-Url: https://codereview.chromium.org/2910003002 Cr-Commit-Position: refs/heads/master@{#476319} Committed: https://chromium.googlesource.com/chromium/src/+/47f2c48469be9345d1f9ab668d05212794767a0c

Patch Set 1 #

Total comments: 4

Patch Set 2 : Set pma state to deleted #

Total comments: 1

Patch Set 3 : Address comment #

Total comments: 11

Patch Set 4 : revise histograms #

Patch Set 5 : missing files #

Patch Set 6 : remove extra std::move #

Total comments: 2

Patch Set 7 : revise comment #

Patch Set 8 : merge #

Total comments: 4

Patch Set 9 : address rkaplow comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -57 lines) Patch
M chrome/browser/chrome_browser_field_trials_desktop.cc View 1 2 3 4 5 6 7 5 chunks +10 lines, -20 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 chunks +2 lines, -11 lines 0 comments Download
M components/browser_watcher/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M components/browser_watcher/postmortem_report_collector.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
A components/browser_watcher/stability_metrics.h View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
A components/browser_watcher/stability_metrics.cc View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
M components/browser_watcher/stability_paths.h View 1 2 3 4 5 6 1 chunk +9 lines, -2 lines 0 comments Download
M components/browser_watcher/stability_paths.cc View 1 2 3 4 5 6 7 8 3 chunks +52 lines, -12 lines 0 comments Download
M components/browser_watcher/stability_report_user_stream_data_source.cc View 1 2 3 4 5 6 7 8 5 chunks +13 lines, -10 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 5 6 7 2 chunks +23 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 2 chunks +24 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (31 generated)
manzagop (departed)
Hi, This is needed for proper coverage estimation. Please have a look! P-A
3 years, 6 months ago (2017-05-29 21:28:38 UTC) #2
Sigurður Ásgeirsson
Nice - I have questions on how best to record your metric. Are there other ...
3 years, 6 months ago (2017-05-30 13:46:37 UTC) #3
manzagop (departed)
Made the change to set the allocator state. PTAL. https://codereview.chromium.org/2910003002/diff/1/components/browser_watcher/stability_report_user_stream_data_source.cc File components/browser_watcher/stability_report_user_stream_data_source.cc (right): https://codereview.chromium.org/2910003002/diff/1/components/browser_watcher/stability_report_user_stream_data_source.cc#newcode90 components/browser_watcher/stability_report_user_stream_data_source.cc:90: ...
3 years, 6 months ago (2017-05-30 16:16:54 UTC) #4
manzagop (departed)
Hi Brian, This change makes it so the PMA state is set to deleted from ...
3 years, 6 months ago (2017-05-30 16:17:58 UTC) #6
Sigurður Ásgeirsson
> > I'd want the metric to be usable in a timeline formula for coverage ...
3 years, 6 months ago (2017-05-30 16:46:32 UTC) #7
Sigurður Ásgeirsson
I'd have a chat with some UMA folks about how to best record these event ...
3 years, 6 months ago (2017-05-30 16:51:18 UTC) #8
manzagop (departed)
Addressed comment. PTAL.
3 years, 6 months ago (2017-05-30 21:03:35 UTC) #11
manzagop (departed)
Btw, I checked that I'd be able to use the value in a timeline formula.
3 years, 6 months ago (2017-05-30 21:04:06 UTC) #12
bcwhite
https://codereview.chromium.org/2910003002/diff/40001/components/browser_watcher/stability_paths.h File components/browser_watcher/stability_paths.h (right): https://codereview.chromium.org/2910003002/diff/40001/components/browser_watcher/stability_paths.h#newcode43 components/browser_watcher/stability_paths.h:43: bool MarkStabilityFileDeleted(const base::FilePath& file_path); Under what conditions would it ...
3 years, 6 months ago (2017-05-31 15:41:19 UTC) #15
Sigurður Ásgeirsson
couple of more nits... https://codereview.chromium.org/2910003002/diff/40001/components/browser_watcher/stability_paths.cc File components/browser_watcher/stability_paths.cc (right): https://codereview.chromium.org/2910003002/diff/40001/components/browser_watcher/stability_paths.cc#newcode46 components/browser_watcher/stability_paths.cc:46: std::unique_ptr<MemoryMappedFile> mmfile(new MemoryMappedFile()); Does a ...
3 years, 6 months ago (2017-05-31 17:19:05 UTC) #16
bcwhite
https://codereview.chromium.org/2910003002/diff/40001/components/browser_watcher/stability_paths.cc File components/browser_watcher/stability_paths.cc (right): https://codereview.chromium.org/2910003002/diff/40001/components/browser_watcher/stability_paths.cc#newcode46 components/browser_watcher/stability_paths.cc:46: std::unique_ptr<MemoryMappedFile> mmfile(new MemoryMappedFile()); On 2017/05/31 17:19:05, Sigurður Ásgeirsson wrote: ...
3 years, 6 months ago (2017-05-31 18:19:26 UTC) #17
Sigurður Ásgeirsson
Just noticed that the CL description has speling[sic] problems.
3 years, 6 months ago (2017-05-31 19:20:56 UTC) #18
manzagop (departed)
Addressed comments. PTAL. https://codereview.chromium.org/2910003002/diff/40001/components/browser_watcher/stability_paths.cc File components/browser_watcher/stability_paths.cc (right): https://codereview.chromium.org/2910003002/diff/40001/components/browser_watcher/stability_paths.cc#newcode46 components/browser_watcher/stability_paths.cc:46: std::unique_ptr<MemoryMappedFile> mmfile(new MemoryMappedFile()); On 2017/05/31 17:19:05, ...
3 years, 6 months ago (2017-05-31 19:57:23 UTC) #23
bcwhite
I don't see any files defining LogCollectOnCrashEvent and the associated enum.
3 years, 6 months ago (2017-05-31 20:11:47 UTC) #26
manzagop (departed)
Oops! Now added.
3 years, 6 months ago (2017-05-31 20:15:11 UTC) #28
bcwhite
lgtm
3 years, 6 months ago (2017-05-31 20:30:39 UTC) #30
Sigurður Ásgeirsson
lgtm https://codereview.chromium.org/2910003002/diff/120001/components/browser_watcher/stability_paths.h File components/browser_watcher/stability_paths.h (right): https://codereview.chromium.org/2910003002/diff/120001/components/browser_watcher/stability_paths.h#newcode41 components/browser_watcher/stability_paths.h:41: // Marks a stability file for deletion on ...
3 years, 6 months ago (2017-06-01 12:50:45 UTC) #37
manzagop (departed)
Thanks for the reviews! https://codereview.chromium.org/2910003002/diff/120001/components/browser_watcher/stability_paths.h File components/browser_watcher/stability_paths.h (right): https://codereview.chromium.org/2910003002/diff/120001/components/browser_watcher/stability_paths.h#newcode41 components/browser_watcher/stability_paths.h:41: // Marks a stability file ...
3 years, 6 months ago (2017-06-01 13:45:12 UTC) #40
manzagop (departed)
Hi Rob! Could you have an OWNERS' look at: chrome\browser\chrome_browser_field_trials_desktop.cc chrome\browser\metrics\chrome_metrics_service_client.cc tools\metrics\histograms\histograms.xml Thanks! P-A
3 years, 6 months ago (2017-06-01 13:45:51 UTC) #42
rkaplow
lgtm https://codereview.chromium.org/2910003002/diff/160001/components/browser_watcher/stability_paths.cc File components/browser_watcher/stability_paths.cc (right): https://codereview.chromium.org/2910003002/diff/160001/components/browser_watcher/stability_paths.cc#newcode19 components/browser_watcher/stability_paths.cc:19: #include "base/metrics/histogram_macros.h" don't think this include is used ...
3 years, 6 months ago (2017-06-01 14:53:48 UTC) #47
manzagop (departed)
Thanks for the review! https://codereview.chromium.org/2910003002/diff/160001/components/browser_watcher/stability_paths.cc File components/browser_watcher/stability_paths.cc (right): https://codereview.chromium.org/2910003002/diff/160001/components/browser_watcher/stability_paths.cc#newcode19 components/browser_watcher/stability_paths.cc:19: #include "base/metrics/histogram_macros.h" On 2017/06/01 14:53:48, ...
3 years, 6 months ago (2017-06-01 14:58:27 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/2910003002/180001
3 years, 6 months ago (2017-06-01 14:58:52 UTC) #51
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 16:33:33 UTC) #54
Message was sent while issue was closed.
Committed patchset #9 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/47f2c48469be9345d1f9ab668d05...

Powered by Google App Engine
This is Rietveld 408576698