how can i override malloc(), calloc(), free() etc under OS X?
Assuming the latest XCode and GCC, what is the proper way to override the memory allocation functions (I guess operator new/delete as well). The debugging memory allocators are too slow for a game, I just need some basic stats I can do myself with minimal impact. I know its easy in Linux due to the hooks, and this was trivial under codewarrior ten years ago when I wrote HeapManager. Sadly smartheap no longer has a mac version. I would use library preloading for this task, because it does not require modification of the running program. If you're familiar with the usual Unix way to do this, it