I'm making sure the app is on the simulator, then just seeing if I can go to the Instruments, point it to the simulator and record/measure what's happening on it.
It leaves a lot open to interpretation, like "how do we make sure that Instruments is ONLY tracking stuff that your app does", but I just wanted to see if I could get you/us part of the way there.
This sure has been a rather grim week for iOS developers, and I'm happy to try and make a little bit of it suck less.
BTW the Instruments docs don't tell you how to run it and target Instruments on the simulator.
Maybe you can get it set up like I mentioned, click Stop in Xcode. Click record in Instruments and then click Run from Xcode.
I dunno. My brain's way past its last brain cell at the moment after the 5 AM session trying to get Lion's App termination turned off.
This was SO MUCH MORE STRAIGHTFORWARDS in Xcode 3. On Mar 15, 2012, at 6:09 PM, Fritz Anderson wrote: On 15 Mar 2012, at 4:14 PM, G S wrote: On Wed, Mar 14, 2012 at 11:33 PM, Alex Zavatone <email@hidden> wrote:
If the app is running the simulator, then if you targeted the simulator, isn't that OK?
Showing Mac OS applications that are installed on the computer, instead of showing apps in the simulator? No, that's most certainly not OK.
As it stands, Instruments is totally worthless for iOS.
"Totally worthless" seems to be an… exaggeration. Obviously, attaching to the iOS Simulator is not what you want to do. You're not profiling the simulator itself, but the iOS app you're working on, which is a different process. Do I understand correctly that this is what you're doing? You're using the Run command to start the app in the simulator, thus attaching the debugger to it. Then you're running Instruments and expecting to attach that to the app on top of the debugger. I can see how that might not work. One thing that did work for me (at least superficially, I only just found it) was to run with breakpoints off (thus taking the debugger out of the picture), and then looking for the iOS app in the _System_ process list. Also, the Profile action, which launches the app into Instruments, works beautifully, and has the advantage of not missing everything before you attach. — F
|