diff options
author | Kostya Serebryany <kcc@google.com> | 2012-12-26 06:30:02 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2012-12-26 06:30:02 +0000 |
commit | 9e3bd38388a7c182db57f6e3fc0943e6d12f012e (patch) | |
tree | 5c14af17f552d06189b6982d82f858bbb158f802 /lib/asan/asan_stats.cc | |
parent | 111a0716d714aa2597e333d160cf1f271695bab7 (diff) |
[asan] asan_allocator2: by default use the StackDepot to store the stack traces instead of storing them in the redzones
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171099 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_stats.cc')
-rw-r--r-- | lib/asan/asan_stats.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/asan/asan_stats.cc b/lib/asan/asan_stats.cc index 31786e90f..152904613 100644 --- a/lib/asan/asan_stats.cc +++ b/lib/asan/asan_stats.cc @@ -17,6 +17,7 @@ #include "asan_stats.h" #include "asan_thread_registry.h" #include "sanitizer/asan_interface.h" +#include "sanitizer_common/sanitizer_stackdepot.h" namespace __asan { @@ -62,6 +63,9 @@ static void PrintAccumulatedStats() { // Use lock to keep reports from mixing up. ScopedLock lock(&print_lock); stats.Print(); + StackDepotStats *stack_depot_stats = StackDepotGetStats(); + Printf("Stats: StackDepot: %zd ids; %zdM mapped\n", + stack_depot_stats->n_uniq_ids, stack_depot_stats->mapped >> 20); } } // namespace __asan |