How to Use Instruments in Xcode
25 posts
• Page 1 of 3 • 1, 2, 3
How to Use Instruments in Xcode
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
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ray Wenderlich
Blog: http://www.raywenderlich.com
Twitter: http://twitter.com/rwenderlich
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

rwenderlich - Site Admin
- Posts: 1776
- Joined: Thu Dec 23, 2010 4:14 pm
- Has thanked: 26 times
- Been thanked: 186 times
Re: How to Use Instruments in Xcode
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
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.
-

Sylvan - Hacker
- Posts: 49
- Joined: Thu Jun 14, 2012 11:52 am
- Has thanked: 5 times
- Been thanked: 10 times
Re: How to Use Instruments in Xcode
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.
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/
Founder, Swipe Stack Ltd - http://www.swipestack.com/
Check out one of our apps, BeerMap - http://www.beermap.co/
- mattjgalloway
- iOS Tutorial Team Member
- Posts: 139
- Joined: Thu Mar 01, 2012 4:23 pm
- Has thanked: 1 time
- Been thanked: 19 times
Re: How to Use Instruments in Xcode
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
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 
- skrew
- n00b
- Posts: 2
- Joined: Thu Dec 06, 2012 4:07 pm
- Has thanked: 0 time
- Been thanked: 0 time
Re: How to Use Instruments in Xcode
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
Glad you liked the tutorial! There's lots more I'd like to talk about on Instruments as well
Matt Galloway
Founder, Swipe Stack Ltd - http://www.swipestack.com/
Check out one of our apps, BeerMap - http://www.beermap.co/
Founder, Swipe Stack Ltd - http://www.swipestack.com/
Check out one of our apps, BeerMap - http://www.beermap.co/
- mattjgalloway
- iOS Tutorial Team Member
- Posts: 139
- Joined: Thu Mar 01, 2012 4:23 pm
- Has thanked: 1 time
- Been thanked: 19 times
Re: How to Use Instruments in Xcode
mattjgalloway wrote: Glad you bought the book! It's a cracking read that's for sure. Enjoy!
I was "shocked" at its size
Anything more about instruments is welcomed (by many more people I bet too).
- skrew
- n00b
- Posts: 2
- Joined: Thu Dec 06, 2012 4:07 pm
- Has thanked: 0 time
- Been thanked: 0 time
Re: How to Use Instruments in Xcode
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
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/
Founder, Swipe Stack Ltd - http://www.swipestack.com/
Check out one of our apps, BeerMap - http://www.beermap.co/
- mattjgalloway
- iOS Tutorial Team Member
- Posts: 139
- Joined: Thu Mar 01, 2012 4:23 pm
- Has thanked: 1 time
- Been thanked: 19 times
Re: How to Use Instruments in Xcode
Instruments always had been a mystery for me. Not anymore. Thanks Matt for showing how to use it and make apps robust! 
- deepumukundan
- n00b
- Posts: 2
- Joined: Wed Nov 14, 2012 9:46 pm
- Has thanked: 0 time
- Been thanked: 0 time
25 posts
• Page 1 of 3 • 1, 2, 3
Who is online
Users browsing this forum: lukaszmozdzen and 2 guests