views:

452

answers:

1

Hi there,

I'm trying to monitor my core data usage but all the Core Data instruments are greyed out in Instruments. It's also not available from the "Run with Performance Tool" in Xcode. It says that the Core Data instruments are for the Mac and it's not available on the iPhone, but I've heard people talking about using it, and it's mentioned in the Apple docs too.

How can I get them working?

Thanks!

+3  A: 

You can run Core Data instruments against the simulator only, not the device.

Open Instruments and select the Core Data items you want, then use Instruments to launch the simulated iPhone app, instead of launching from Xcode.

Hopefully this support is better in future versions. Also, I believe it only works with 3.1, not 3.0.

Hunter
Ah got it working on the simulator! Thanks for that! I'm sure it wasn't working before, must have been playing up!
Michael Waterfall
The Core Data instruments on the Mac rely on DTrace. Since we don't have DTrace on the iPhone yet, I'm not surprised that they only work against the Simulator (like custom DTrace scripts do).
Brad Larson