23

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?

learner2010
  • 4,157
  • 5
  • 43
  • 68

3 Answers3

52

If you want to use Instruments with your product:

Product -> Profile

This brings up a dialog where you can choose Leaks, Allocations, etc.

GendoIkari
  • 11,734
  • 6
  • 62
  • 104
12

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.

Kendall Helmstetter Gelner
  • 74,769
  • 26
  • 128
  • 150
6

Product -> Perform Action -> Profile Without Building This should spawn a dialog to choose the good old known Instrument's templates from.

Nick Weaver
  • 47,228
  • 12
  • 98
  • 108
  • "valid provision profile for this executable was not found" error occurs when I click "Profile without building". But I could run the app in the normal way without any provisioning issues. Any idea why? – ThE uSeFuL Sep 20 '11 at 12:17