Re: Shark not profiling correctly on command-line tool
Re: Shark not profiling correctly on command-line tool
- Subject: Re: Shark not profiling correctly on command-line tool
- From: Wade Williams <email@hidden>
- Date: Thu, 19 Feb 2009 16:23:59 -0600
On Feb 19, 2009, at 2:29 PM, Rick Altherr wrote:
On Feb 19, 2009, at 11:49 AM, Wade Williams wrote:
I've got a command-line tool (written in straight C) that Shark is
not generating any samples for.
The tool was built with -g -O0. It runs as root since it attaches
to port 80 and it stays attached to the terminal that started it.
When I try to run Shark against it, I get:
ERROR:
No samples taken. [CHUDDataSource]
What configuration are you trying to use? If you use something like
Time Profile on a process that isn't actively doing anything (i.e.
not using any CPU cycles), then it won't be sampled. So a process
solely listening for traffic on a socket will do this. A Time
Profile (All Thread States) on the other hand will sample the
process even if it is idle or blocked and thus will return samples.
This was indeed the problem. The application receives a periodic
heartbeat, and I was confident that activity was occurring.
Apparently my timing was off. After generating substantial activity
during the sampling I am indeed getting samples.
Thanks Rick.
Wade
_______________________________________________
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