You can start profiling your application by pressing Command-I (that's i like in India). By default Xcode4 Instruments runs on simulator.
When you want to profile on a real device: select at top left corner Scheme popup menu, "Edit Scheme...", Profile MyTest.app and change Build Configuration from Release to Debug.
Showing posts with label Instruments. Show all posts
Showing posts with label Instruments. Show all posts
Thursday, May 26, 2011
How to Run Instruments with Real Device
Monday, June 7, 2010
How to Make Instruments Show Your Own Code
Debugging memory leaks with Instruments. Great tool, but would be more useful, if I could see there references to my code.
Turned out it's a known iPhone OS 3.0 defect, almost two years old! No idea why it hasn't been fixed by Apple. Maybe old SDKs are not supported on purpose, which does make some business sense.
How to fix: Go to your Xcode project, select project info, go to Build tab and search Base SDK. Change your project Base SDK to 3.1. I had there 3.0, which seems to be a known defect.
Turned out it's a known iPhone OS 3.0 defect, almost two years old! No idea why it hasn't been fixed by Apple. Maybe old SDKs are not supported on purpose, which does make some business sense.
How to fix: Go to your Xcode project, select project info, go to Build tab and search Base SDK. Change your project Base SDK to 3.1. I had there 3.0, which seems to be a known defect.
- Build - Clean All Targets - select all - Clean
- Build - Build and Analyze
- Run - Run with Performance Tool - Leaks
- Stop
- Open popup item with application name - Launch Executable - Choose Executable
- Browse to your Build directory and select your application
- Record (the red Dot button)
Labels:
code,
debug,
Instruments,
iphone,
memory leak,
simulator,
source,
Xcode
Subscribe to:
Posts (Atom)