12 #ifndef THRILL_MEM_MALLOC_TRACKER_HEADER 13 #define THRILL_MEM_MALLOC_TRACKER_HEADER 20 using ssize_t = SSIZE_T;
21 #elif defined(__APPLE__) 76 void StartMemProfiler(common::ProfileThread& sched, common::JsonLogger& logger);
81 #endif // !THRILL_MEM_MALLOC_TRACKER_HEADER void StartMemProfiler(common::ProfileThread &sched, common::JsonLogger &logger)
launch profiler task
void flush_memory_statistics()
method to flush thread-local memory statistics when memory_exceeded
void * bypass_aligned_alloc(size_t alignment, size_t size) noexcept
bypass malloc tracker and access aligned_alloc() directly
void set_memory_limit_indication(ssize_t size)
bool memory_exceeded
memory limit exceeded indicator
void bypass_aligned_free(void *ptr, size_t size) noexcept
bypass malloc tracker and access aligned_alloc() directly
void bypass_free(void *ptr, size_t size) noexcept
bypass malloc tracker and access free() directly
void malloc_tracker_reset_peak()
user function to reset the peak allocation to current
void malloc_tracker_print_status()
user function which prints current and peak allocation to stderr
ssize_t malloc_tracker_total_allocs()
user function to return total number of allocations
ssize_t malloc_tracker_current()
user function to return the currently allocated amount of memory
void malloc_tracker_print_leaks()
user function which prints new unfreed areas to stdout since the last call
void * bypass_malloc(size_t size) noexcept
bypass malloc tracker and access malloc() directly
ssize_t malloc_tracker_peak()
user function to return the peak allocation