Unfortunately, Valgrind does not support OS X 10.8 yet. After some Googling, I came across some forum posts where people were able to get it to compile and "almost" link. Does anyone know of any good alternatives to Valgrind for memory leak detection?
Tell me more
×
Ask Different is a question and answer site for
power users of Apple hardware and software. It's 100% free, no registration required.
|
Assuming you can be bothered, if you install MacPorts you will be able to install a functioning Valgrind (3.8.1 as for today) on your system. Unfortunately MacPorts will require you to install the whole XCode, not just the CL tools, so YMMV. |
|||
|
|
The Instruments app (part of Xcode) is a very good way to look for leaks and run stress tests on the memory allocation of a running program. |
|||||
|
|
While valgrind can be installed, the current state isn't very usable. In a simple program I got the following result;
The same code will be fine with using valgrind on a linux.(compiled on their respective systems) |
|||
|
|