• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to use Instruments to profile network I/O?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to use Instruments to profile network I/O?
      • From: Dave Camp <email@hidden>
    • Re: How to use Instruments to profile network I/O?
      • From: Jean-Denis MUYS <email@hidden>
    • Re: How to use Instruments to profile network I/O?
      • From: Jonas Maebe <email@hidden>
    • Re: How to use Instruments to profile network I/O?
      • From: Wim Lewis <email@hidden>
  • Prev by Date: Re: Stepping through out of order?
  • Next by Date: Re: How to use Instruments to profile network I/O?
  • Previous by thread: Re: Proper use of Header files
  • Next by thread: Re: How to use Instruments to profile network I/O?
  • Index(es):
    • Date
    • Thread