17#ifndef MALLOC_MONITOR_INTERNAL_H
18#define MALLOC_MONITOR_INTERNAL_H
Platform-independent access to architecture details.
POSIX.1-2008 compliant version of the assert macro.
uintptr_t uinttxtptr_t
Pointer type to point anywhere in the .text section.
void malloc_monitor_add(void *ptr, size_t size, uinttxtptr_t pc, char *func_prefix)
Record malloc/calloc/realloc call increasing heap usage.
void malloc_monitor_mv(void *ptr_old, void *ptr_new, size_t size_new, uinttxtptr_t pc)
Record realloc call either increasing or decreasing heap usage.
void malloc_monitor_rm(void *ptr, uinttxtptr_t pc)
Record free/realloc call decreasing heap usage.