How to Use Instruments in Xcode

Discussion of the official tutorials published on raywenderlich.com. Please only discuss the official tutorials here - for general questions, use the General Discussion forum instead.

How to Use Instruments in Xcode

Postby rwenderlich » Wed Dec 05, 2012 11:00 am

This is the official thread to discuss the following blog post: How to Use Instruments in Xcode
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ray Wenderlich
Blog: http://www.raywenderlich.com
Twitter: http://twitter.com/rwenderlich
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
User avatar
rwenderlich
Team Member
Site Admin
 
Posts: 2168
Joined: Thu Dec 23, 2010 4:14 pm
Has thanked: 28 times
Been thanked: 349 times

Re: How to Use Instruments in Xcode

Postby Sylvan » Wed Dec 05, 2012 10:42 pm

Thanks for this tutorial. It came at a good time for me. However, after running this profiler for the first time, my Cocos2D app no longer shows the stats in the lower-left corner, like fps, number of draw calls, etc. Neither in my simulator nor the device. Any idea how to get this back?

Edit: Never mind! I found out what happened. Somehow the fps_images files had gotten removed from my project. I had to re-add them to the project and all is good. No idea why that happened though :(
Last edited by Sylvan on Wed Dec 05, 2012 10:54 pm, edited 1 time in total.
User avatar
Sylvan
Hacker
 
Posts: 49
Joined: Thu Jun 14, 2012 11:52 am
Has thanked: 5 times
Been thanked: 12 times

Re: How to Use Instruments in Xcode

Postby mattjgalloway » Wed Dec 05, 2012 10:48 pm

Glad you liked the tutorial!

What changes did you make as a result of going through instruments? Something like UI disappearing sounds extremely odd, just from fixing leaks, etc.
Matt Galloway
Founder, Swipe Stack Ltd - http://www.swipestack.com/

Check out one of our apps, BeerMap - http://www.beermap.co/
mattjgalloway
Team Member
iOS Tutorial Team Member
 
Posts: 234
Joined: Thu Mar 01, 2012 4:23 pm
Has thanked: 1 time
Been thanked: 21 times

Re: How to Use Instruments in Xcode

Postby PatrickCocoa » Thu Dec 06, 2012 3:11 am

Thanks, this tutorial was very helpful. All of the examples (timer, allocations, and leaks) seem like they'll be applicable for almost any app. I'm going to go fire up some of my apps and give these instruments a try!
PatrickCocoa
Hacker
 
Posts: 11
Joined: Tue Apr 26, 2011 2:09 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to Use Instruments in Xcode

Postby skrew » Thu Dec 06, 2012 4:10 pm

I've been a follower for of RW since a while, but this tutorial took it to another level higher. Thanks a lot for this, it was very-very useful. Just made me order the ios5&ios6 tutorials book :D
skrew
n00b
 
Posts: 3
Joined: Thu Dec 06, 2012 4:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to Use Instruments in Xcode

Postby mattjgalloway » Thu Dec 06, 2012 4:26 pm

skrew wrote:I've been a follower for of RW since a while, but this tutorial took it to another level higher. Thanks a lot for this, it was very-very useful. Just made me order the ios5&ios6 tutorials book :D


Glad you liked the tutorial! There's lots more I'd like to talk about on Instruments as well :-). Glad you bought the book! It's a cracking read that's for sure. Enjoy!
Matt Galloway
Founder, Swipe Stack Ltd - http://www.swipestack.com/

Check out one of our apps, BeerMap - http://www.beermap.co/
mattjgalloway
Team Member
iOS Tutorial Team Member
 
Posts: 234
Joined: Thu Mar 01, 2012 4:23 pm
Has thanked: 1 time
Been thanked: 21 times

Re: How to Use Instruments in Xcode

Postby skrew » Thu Dec 06, 2012 8:05 pm

mattjgalloway wrote: Glad you bought the book! It's a cracking read that's for sure. Enjoy!

I was "shocked" at its size :D Great stuff.
Anything more about instruments is welcomed (by many more people I bet too).
skrew
n00b
 
Posts: 3
Joined: Thu Dec 06, 2012 4:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to Use Instruments in Xcode

Postby marko1503 » Fri Dec 07, 2012 12:56 am

Nice tutorial, but it will be better to add one more test. How to test your apps when it's in background. I mean how to check that you app doesn't use dirty memory in background (after user taps home button, not background mode like plays music, navigation etc). Apple says that your app will active as long as less memory your app use.
marko1503
n00b
 
Posts: 1
Joined: Tue Dec 13, 2011 7:10 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to Use Instruments in Xcode

Postby mattjgalloway » Fri Dec 07, 2012 7:59 am

marko1503 wrote:Nice tutorial, but it will be better to add one more test. How to test your apps when it's in background. I mean how to check that you app doesn't use dirty memory in background (after user taps home button, not background mode like plays music, navigation etc). Apple says that your app will active as long as less memory your app use.


Well for that you just need to ensure that your memory footprint is low when you go to the background. You can use the allocations instrument to see how much memory you're using. You're right though that it would make for a good topic to explicitly talk about in a future post.
Matt Galloway
Founder, Swipe Stack Ltd - http://www.swipestack.com/

Check out one of our apps, BeerMap - http://www.beermap.co/
mattjgalloway
Team Member
iOS Tutorial Team Member
 
Posts: 234
Joined: Thu Mar 01, 2012 4:23 pm
Has thanked: 1 time
Been thanked: 21 times

Re: How to Use Instruments in Xcode

Postby deepumukundan » Fri Dec 07, 2012 10:58 pm

Instruments always had been a mystery for me. Not anymore. Thanks Matt for showing how to use it and make apps robust! 8-)
deepumukundan
n00b
 
Posts: 2
Joined: Wed Nov 14, 2012 9:46 pm
Has thanked: 0 time
Been thanked: 0 time

Next

Return to Official Tutorials

Who is online

Users browsing this forum: No registered users and 16 guests