How to use Instruments to profile network I/O?
How to use Instruments to profile network I/O?
- Subject: How to use Instruments to profile network I/O?
- From: Jens Alfke <email@hidden>
- Date: Mon, 29 Oct 2012 15:40:05 -0700
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