Am I the only person who can’t figure out Instruments? I’ve learned how to use 
the Time Profiler instrument pretty well, and it’s useful, but I’m profiling 
some complex activity that includes TCP I/O, parsing and database queries and I 
need insight into more than just CPU cycles.

Here’s my current pain point: I can’t figure out how to get the Connections 
instrument to work. I get as far as this:

1. In Xcode I choose Product>Profile (Cmd-I)
2. In Instruments I select the Time Profiler template
3. I open the library and drag the Connections template into the instrument list
4. I press Record

Now Instruments pops up a “Choose Target for Connections” alert. I guess this 
is asking what process the Connections instrument should monitor — but why does 
it need to ask? The profile session is already attached to my app (it’s in the 
pop-up in the toolbar.) Worse, the alert’s process list *only shows running 
processes*, so my app isn’t in the list. Therefore I can’t start profiling 
unless I remove the Connections instrument.

(I’ve tried using the Activity Monitor instrument to track network I/O, as 
suggested in the docs. But its granularity is one second, which is uselessly 
long for my app which is making dozens of reads/writes per second.)

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to