DescriptionWire 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 #Messages
Total messages: 37 (15 generated)
|