简体   繁体   中英

Is there an alternative to Valgrind on OS X Yosemite?

Now that we OS X Yosemite is out, we have the same problem as always ... Valgrind doesn't work on OS X 10.10.

Is there a working alternative to Valgrind, that can find memory leaks and other kinds of memory errors, like Valgrind does?

As pointed here , Valgrind is available for Yosemite, but only from trunk. Use

brew install valgrind --HEAD

to install.

I've found that Valgrind is still a bit unstable on Mac in certain situations. If you're only looking for identifying (definite) memory leaks you could give Heapusage a try. Its output is similar to Valgrind, so it should be easy to use.

Full disclosure: I'm the author of Heapusage.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM