Record every memory allocation