trace memory allocation