summaryrefslogtreecommitdiff
path: root/lib/asan/asan_memory_profile.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/asan/asan_memory_profile.cc')
-rw-r--r--lib/asan/asan_memory_profile.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/asan/asan_memory_profile.cc b/lib/asan/asan_memory_profile.cc
index 05846c37cb6df..603284c8c688a 100644
--- a/lib/asan/asan_memory_profile.cc
+++ b/lib/asan/asan_memory_profile.cc
@@ -107,6 +107,9 @@ static void MemoryProfileCB(const SuspendedThreadsList &suspended_threads_list,
__lsan::ForEachChunk(ChunkCallback, &hp);
uptr *Arg = reinterpret_cast<uptr*>(argument);
hp.Print(Arg[0], Arg[1]);
+
+ if (Verbosity())
+ __asan_print_accumulated_stats();
}
} // namespace __asan