libsanitizer: re-implement heap profiler. 25/191225/14
authorDmitriy Evgenevich Gonzha <d.gonzha@samsung.com>
Wed, 14 Mar 2018 10:47:05 +0000 (13:47 +0300)
committerAndrey Drobyshev <a.drobyshev@samsung.com>
Mon, 11 Feb 2019 06:33:20 +0000 (06:33 +0000)
commit35faeb089167e1ed3cb8ee7808d72da3855c85f1
treee67a87191a3725419443fb05022393511a926f8b
parenteac97ce657b0b1a3800383f327414771d26227e6
libsanitizer: re-implement heap profiler.

In the previos heap profiler implementation HeapProfile instance was
created every time BackgroundThread wanted to collect statistical data.
This commit simply applies the singleton pattern: now there's only one
HeapProfile object which can both decide wether it's time to collect the
statistics and print profiling data.

Signed-off-by: Andrey Drobyshev <a.drobyshev@samsung.com>
Change-Id: I8dfa245d826c52749564346a2cd50788c5d91124
gcc/testsuite/c-c++-common/asan/auto_memory_profile.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/asan/auto_memory_profile_decrease.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/asan/auto_memory_profile_timestamp.c [new file with mode: 0644]
libsanitizer/asan/asan_memory_profile.cc
libsanitizer/sanitizer_common/sanitizer_common.cc
libsanitizer/sanitizer_common/sanitizer_common_libcdep.cc
libsanitizer/sanitizer_common/sanitizer_flags.inc
libsanitizer/sanitizer_common/sanitizer_libc.h
libsanitizer/sanitizer_common/sanitizer_printf.cc