Oct 20, 2008

(Linux, Mac OS X) How to get the memory alloc history

There is a good debug tool in Linux and Mac which is gdb, it has a useful command to show the history of a memory allocation.

(gdb) shell malloc_history 2417(processId) 0x35d4f0(memoryAddress)

No comments: