Time profiler in Instruments - iphone

I am having trouble launching Time Profiler in Xcode, both for Mac Applications and iPhone apps.
The steps I have tried are opening Time Profiler, Clicking the choose target drop down box, selecting my iPhone or Mac book. Choose target -> myApp. If I choose a Mac app then I hit the record button a big yellow warning pops up accross the window saying unable to configure sampling trigger for x. If I choose an iPod app then the record button stays greyed out and cannot be clicked.
Any ideas what I'm doing wrong here?

Have you tried starting Instruments via (in Xcode) Run -> Run with Performance Tool -> Time Profiler? That may help set up Instruments and get you running v. launching Instruments manually.
Also, I have had trouble in the past where the SDK used to build the iPhone app differed from that which Instruments was expecting. Check out the Instruments documentation on how to explicitly tell it which version of the iOS you are running to perform the benchmarking.

Sometimes Time profiler is greyed out because you dont have application install on simulator...if you have application installed on simulator and then you try Run with Performance Tool it shows Time profiler enabled.

Related

How to access memory leaks tool while testing on iPad device?

So I'm using the memory leaks debugging tool by selecting "Profile" under the "Run" submenu.
I can run and record fine on the iOS simulator, but if I select my iPad device, the record button is greyed out/unselectable. I tried messing with my Profile scheme, changing it to Debug and Instrument: Leaks but its still greyed out. The app doesn't execute in my iPad either, like it normally would on Run.
Any ideas? Thanks
Probably.. you are missing the developer profile..
1. change the build settings
2. Select the developer profile in build settings
3. Build the application
4. Try to profile this with instruments.

How can I test iPhone app performance and network usage without building/running from xcode

I want to check the memory and network usage of an iPhone app that I don't have the source code for. How would I do this?
Finally i could able to check the performance and real memory usage of the app. using the Instruments.App under Xcode installation directory/Applications/Instruments.app.
Connect your device to Mac.
1. Launch Instruments. The application automatically creates a new trace document and prompts you to select a template.
2. Select the Activity Monitor template under IOS section and and click the Choose button. Instruments adds the Activity Monitor instrument to the trace document.
3. In the Default Target menu of the trace document, choose Target and select the App you want to target.
4. Click on the Record button. Targeted App will be started running on your device.
5. Wait a few seconds so that Instruments can gather some data. Now perform you are operations on the App.
6. Click the Stop button after your actions completed.
Thanks.
#Dear Ramakrishna it is not possible to check the performance of application with out the source code of the app .
If you have source than only you can check the performance of the app.By the help performance tool -> leak click you check the performance of the app.
Thank you I think this will help you dear

error from debugger: the program being debugged is not being run

i have run my application in device but application is crashed and print following message
error from debugger: the program being debugged is not being run.
so please tell me what to do?
my application gonna launch properly but not not debugging first time (gonna crash) than from second time i start application work proper without crashing
my application install in device. we can`t debug in device...
The first thing i do when i get that is a Clean All usually solves that. If you don't see the Clean All button right click your Xcode toolbar, customize, and drag the Clean All button to your toolbar from there.
-Check that the provisioning profile installed on your device haven't expired (would see a red dot in the organizer - Window->Organizer).
-Try restarting XCode.
Do you mean device? If so then it could mean the device is not launching the application correctly. Make sure your developer profile and everything in the build settings is correctly set. This may sound obvious but also make sure the device is unlocked and open.

Running Instrument->leaks and debugger console at the same time in xcode

My program is crashing when using the memory leak instrument in xcode (yet it is showing no memory leaks). I would like to be able to run the debugger console at the same time to see what's happening. Is this possible? thanks
Yes - in the simulator at least.
The way to do this is to first run your app in instruments, then stop the app (this just makes sure Instruments knows about your application and that Instruments is up and running). Then restart the app in the debugger.
Now go back to Instruments, and select "attach to process" - selecting your application from the drop-down. You can start recording now and the debugger will also be functional.
I'm not 100% sure it's possible, but if it is, you would do it by starting from Instruments or XCode, and then in the other one attach to the process. In XCode you do this by going to Run -> Attach to Process. In Instruments you do it by going to Choose Target -> Attach to Process, in a new window.
If you just want to see NSLogs and other debug messages, you can open the Console app.

Cannot choose "Run with Performance Tool" -> "OpenGL ES" in Xcode 3

In Xcode3, out of all options under "Run" -> "Run with Performance Tool", I can only select:
Leaks
CPU Sampler
Allocations
Activity monitor
I cannot select any other option including "Zombies", "UI Recorder", etc., or most importantly for me, "OpenGL ES". I think this is consistent in all iOS projects on the machine, but I did not check.
How can I profile OpenGL ES?
Some of the options of Instrument are available only on the Device.
Connect device, change the build from simulator to device... build the app first then try using
instrument and see if your getting what you looking for..
You must first run the project in Xcode, then select the Attach to Process option in Instruments and select your running application. It works for me.
You could run Instruments solo, it's a regular app and you don't have to launch it from Xcode. Then attach to your process and instrument away...