Re: CPU sampling and +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:]
Re: CPU sampling and +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:]
- Subject: Re: CPU sampling and +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:]
- From: Michael Ash <email@hidden>
- Date: Sat, 14 Nov 2009 06:20:39 -0500
On Fri, Nov 13, 2009 at 1:28 PM, Paulo Andrade <email@hidden> wrote:
> Hello,
>
> I'm using the CPU sampler template.
>
> Here (http://1wzi.sl.pt) is a sample of a very simple run to prove my point.
>
> Here's how I collected it:
> - Start the app and let it fully launch (it does a few request at boot)
> - Attach instruments with the CPU Sampler template
> - Let it run for 30 seconds and not touch the iphone
>
> You'll see that the time is equally divided between +[UIApplication run] and +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:]
>
> Please let me know if you have any other ideas that could explain this.
The CPU sampler in Instruments does not distinguish between a thread
which is actively running (and taking up CPU time) and a thread which
is sleeping (and taking no CPU time). This does not make it very
useful. I recommend using Shark instead.
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden