Use EZmem instead which was rebuilt as an attempt to reach near-zero interference using fd and writing data to files instead of using heap memory https://github.com/lorenuars19/EZmem
curl https://raw.githubusercontent.com/lorenuars19/wraloc/master/wraloc.h -o wraloc.h
- Replaces
malloc()
&free()
using macros - Count valid
malloc()
and count non-NULLfree()
ONLY - Use of GCC's
__attribute__
to execute code before and after themain()
- Prints the size of allocation in bytes and location of the call when
free()
/malloc()
is called.
- Get
curl https://raw.githubusercontent.com/lorenuars19/wraloc/master/wraloc.h -o wraloc.h
- Include
#include "wraloc.h"
WRALOC is activated by default to disable it compile with -D WRAP=0