[scudo] Adding an interface function to print allocator stats
authorKostya Kortchinsky <kostyak@google.com>
Wed, 25 Apr 2018 18:52:29 +0000 (18:52 +0000)
committerKostya Kortchinsky <kostyak@google.com>
Wed, 25 Apr 2018 18:52:29 +0000 (18:52 +0000)
commitd8803d3d9251d35499659538244e5dd4550f5aaf
tree4fd33eeba6733047142582f1725132fc16dc9049
parenta48924c706dc2e0d0adc56aefb058d3696f85946
[scudo] Adding an interface function to print allocator stats

Summary:
This adds `__scudo_print_stats` as an interface function to display the Primary
and Secondary allocator statistics for Scudo.

Reviewers: alekseyshl, flowerhack

Reviewed By: alekseyshl

Subscribers: delcypher, llvm-commits, #sanitizers

Differential Revision: https://reviews.llvm.org/D46016

llvm-svn: 330857
compiler-rt/include/sanitizer/scudo_interface.h
compiler-rt/lib/scudo/scudo_allocator.cpp
compiler-rt/lib/scudo/scudo_allocator_combined.h
compiler-rt/lib/scudo/scudo_interface_internal.h
compiler-rt/test/scudo/stats.c [new file with mode: 0644]