diff options
author | Elliott Hughes <enh@google.com> | 2017-09-26 11:54:49 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2017-09-26 17:24:39 -0700 |
commit | ac72b96632f7d11ee9348c9fb72cdb56c5bf885c (patch) | |
tree | 0b7edea7f7f83f0dfaa365af4ac6db92ecab2b89 | |
parent | 76b5504475550ba0322867d0ef0ace43f584f138 (diff) | |
download | unwinding-ac72b96632f7d11ee9348c9fb72cdb56c5bf885c.tar.gz |
Show the number of VMAs in the tombstone.oreo-mr1-vts-releaseoreo-mr1-devoreo-mr1-cts-dev
Tombstones (especially ones with lots of VMAs) are regularly truncated.
We can at least show the number of VMAs, though, for anyone interested
in knowing whether they got close to the default 64Ki limit.
Bug: http://b/66911122
Bug: 64709603 (presubmit balking at the line above)
Test: ran crasher, examined tombstone
(cherry picked from commit 868d39a82fb2d9830d253409a1c28f0ae1fcac33)
Change-Id: I286db66f28f132307d573dbe5164efc969dc6ddc
-rw-r--r-- | libbacktrace/include/backtrace/BacktraceMap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbacktrace/include/backtrace/BacktraceMap.h b/libbacktrace/include/backtrace/BacktraceMap.h index 02a50f7..f7a55b8 100644 --- a/libbacktrace/include/backtrace/BacktraceMap.h +++ b/libbacktrace/include/backtrace/BacktraceMap.h @@ -89,6 +89,8 @@ public: const_iterator begin() const { return maps_.begin(); } const_iterator end() const { return maps_.end(); } + size_t size() const { return maps_.size(); } + virtual bool Build(); static inline bool IsValid(const backtrace_map_t& map) { |