What is the equivalent of Valgrind within the Xcode environment?

 ̄綄美尐妖づ 提交于 2019-12-07 02:17:15

问题


It was recently recommended to me to use Valgrind to check for memory leaks, errors etc. on my iPhone project (which is written mainly in C and Objective-C).

I'm fairly new to this kind of work and was wondering what tools there were in Xcode that would serve the same purpose.

Thanks so much


回答1:


If you want to check memory leaks then you can run your project with performance tool with leaks. Follow the screen shot.




回答2:


http://landonf.bikemonkey.org/code/iphone/iPhone_Simulator_Valgrind.20081224.html

Xcode's "Leaks" tool is not the same thing as Valgrind. Valgrind detects overwriting memory boundaries (amongst other things) in addition to detecting memory leaks.



来源:https://stackoverflow.com/questions/5431697/what-is-the-equivalent-of-valgrind-within-the-xcode-environment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!