Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the equivalent of Valgrind within the Xcode environment?

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

like image 818
Eric Brotto Avatar asked Mar 25 '11 11:03

Eric Brotto


2 Answers

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

enter image description here

like image 92
saadnib Avatar answered Sep 29 '22 08:09

saadnib


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.

like image 24
David Avatar answered Sep 29 '22 07:09

David