OSDN Git Service

dumpstate: Further cleanups related to new stack dumping scheme.
authorNarayan Kamath <narayan@google.com>
Thu, 1 Jun 2017 17:50:12 +0000 (18:50 +0100)
committerNarayan Kamath <narayan@google.com>
Thu, 1 Jun 2017 19:16:38 +0000 (20:16 +0100)
commitbd86372f09748b258f959cb7a1a04613038e59b0
tree944cba8f31a2db0c9bab949403ca634638b3f6a6
parentcc15d22fcf6453777b5057456ad87e6448dc91ec
dumpstate: Further cleanups related to new stack dumping scheme.

- Rewrite AddDumpFds to iterate over all files in the dump directory
  instead of assuming a specific file pattern. This gives us additional
  flexibility in generating dump file names.

- Fix a bug in deducing the value of is_global_stack_trace_file.

- Add a better section header for the most recent ANR dump. The most
  recent dump will be titled "VM TRACES AT LAST ANR" and all others will
  be titled "HISTORICAL ANR". Also fixes the sort order so that the most
  recent ANR shows up first.

Bug: 36024548
Test: Manual; adb bugreport

Change-Id: I461712954d033ef3a3911d5b419a101cac71c8fb
cmds/dumpstate/dumpstate.cpp