platform_bionic/libc/malloc_debug/tests
Christopher Ferris 5610d5a3a4 Add support for signal dumping log stats.
Adding the new option log_allocator_stats_on_signal that will call
mallopt(M_LOG_STATS, 0), when a signal is sent to a process.

This call does not happen in the signal handler, but a variable
is set to trigger the mallopt call. The next time any allocation
call occurs, the mallopt call will be made.

Also, includes new unit tests for the new config option.

Test: All unit tests pass.
Test: Enabling the new feature and stop/start and sending the signal to
Test: a process and observing the log contains the memory stats.
Test: Did the above for a scudo and jemalloc based device.
Change-Id: Idcf6fca74036efb065b9c4cc037aaf9bcf0f139e
2023-11-28 13:29:42 -08:00
..
AndroidTest.xml Modify how the malloc debug tests run. 2023-06-30 15:09:44 -07:00
backtrace_fake.cpp Update for LocalUnwinder object removal. 2022-03-03 15:23:25 -08:00
backtrace_fake.h Update for LocalUnwinder object removal. 2022-03-03 15:23:25 -08:00
libc_fake.cpp Malloc debug rewrite. 2016-01-25 10:54:21 -08:00
log_fake.cpp Add support for using the new unwinder. 2018-05-24 08:44:53 -07:00
log_fake.h Malloc debug rewrite. 2016-01-25 10:54:21 -08:00
malloc_debug_config_tests.cpp Add support for signal dumping log stats. 2023-11-28 13:29:42 -08:00
malloc_debug_system_tests.cpp Use new AndroidLocalUnwinder. 2022-05-16 15:37:21 -07:00
malloc_debug_unit_tests.cpp Add support for signal dumping log stats. 2023-11-28 13:29:42 -08:00