diff options
author | Elliott Hughes <enh@google.com> | 2017-09-26 11:54:49 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2017-09-26 12:01:06 -0700 |
commit | 868d39a82fb2d9830d253409a1c28f0ae1fcac33 (patch) | |
tree | 4fa6cbeb2fb1bcde3db301f722212d35d335ff9b /libbacktrace/include/backtrace/BacktraceMap.h | |
parent | 65673033ab9473142b334df76e8c0fcdea6a9335 (diff) | |
download | system_core-868d39a82fb2d9830d253409a1c28f0ae1fcac33.tar.gz system_core-868d39a82fb2d9830d253409a1c28f0ae1fcac33.tar.bz2 system_core-868d39a82fb2d9830d253409a1c28f0ae1fcac33.zip |
Show the number of VMAs in the tombstone.
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
Test: ran crasher, examined tombstone
Change-Id: I286db66f28f132307d573dbe5164efc969dc6ddc
Diffstat (limited to 'libbacktrace/include/backtrace/BacktraceMap.h')
-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 963c34b64..6cf8b3fca 100644 --- a/libbacktrace/include/backtrace/BacktraceMap.h +++ b/libbacktrace/include/backtrace/BacktraceMap.h @@ -91,6 +91,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) { |