问题
I was trying to open instruments in xcode 4 but was not able to find a way to do it. Usually in Xcode 3, we would do run -> run with performance tool... but I dont really find any such thing to do it in xcode 4.. would anyone be able to tell me how to do this?
回答1:
If you want to use Instruments with your product:
Product -> Profile
This brings up a dialog where you can choose Leaks, Allocations, etc.
回答2:
Cmd-I also works to invoke Profile.
By default Profile is set up to use the Release build. If you want it to use Debug then pull down the platform dropdown, select "Edit Scheme", go to the "Profile" side-tab, and tell it to use Debug instead of Release.
回答3:
Product -> Perform Action -> Profile Without Building This should spawn a dialog to choose the good old known Instrument's templates from.
来源:https://stackoverflow.com/questions/5304390/instruments-in-xcode-4