diff options
author | Kostya Serebryany <kcc@google.com> | 2016-09-14 22:00:58 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-09-14 22:00:58 +0000 |
commit | a4985a8ab5cd1689365a50200dd8ab2441c6fae9 (patch) | |
tree | 9282c05f8cf2cabafbf51f3247f980edf1546630 /lib/sanitizer_common/sanitizer_allocator_interface.h | |
parent | d89810afdc2862ea865f5c297ef4ea5839941d25 (diff) |
[asan] add heap_profile=1 to asan to periodically print the heap profile. So far this is a very basic heap-profile functionality
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@281546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_allocator_interface.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_allocator_interface.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_allocator_interface.h b/lib/sanitizer_common/sanitizer_allocator_interface.h index 797c38a79..5ff6edba0 100644 --- a/lib/sanitizer_common/sanitizer_allocator_interface.h +++ b/lib/sanitizer_common/sanitizer_allocator_interface.h @@ -37,6 +37,10 @@ SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE /* OPTIONAL */ void __sanitizer_malloc_hook(void *ptr, uptr size); SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE /* OPTIONAL */ void __sanitizer_free_hook(void *ptr); + + +SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE + void __sanitizer_print_memory_profile(int top_percent); } // extern "C" #endif // SANITIZER_ALLOCATOR_INTERFACE_H |