Re: How to use Instruments to profile network I/O?
Re: How to use Instruments to profile network I/O?
- Subject: Re: How to use Instruments to profile network I/O?
- From: Ben Harper <email@hidden>
- Date: Fri, 02 Nov 2012 10:20:24 -0700
Hi Jens,
I would recommend filing an enhancement request for the Network Connections instrument to show when network sockets are open/closed, and for viewing traffic going through specific network socket connections.
Thanks,
Ben
On Oct 29, 2012, at 3:40 PM, Jens Alfke <email@hidden> wrote:
> I’m trying to profile some iOS code that sends a lot of HTTP requests using NSURLConnection. How can I use Instruments to see activity like sockets being opened/closed? I particularly want to see how well HTTP keep-alive is being used.
>
> The “Network Connections” instrument just shows a list of what sockets were opened, but says nothing about *when* they were opened or closed, even though it also has a running graph of network throughput by time. Nor is there any way to see what data was sent over the socket.
>
> "I/O Activity” looks like it might be more promising, if I check the “Sockets” box, but if I use it Instruments totally locks up about 10 seconds after it starts profiling (looks like some kind of infinite loop involving KVO.)
>
> As ever, I’ve found the Instruments documentation mostly useless. Is there any 3rd party “missing manual” book that explains how to use it?
>
> —Jens
>
> PS: If this were Mac OS, I’d ditch Instruments and use something like tcpdump instead. But I don’t think there’s any way to use that with iOS, short of making the device route through a proxy server on my Mac, right?
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden