• 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
Re: Shark not profiling correctly on command-line tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Shark not profiling correctly on command-line tool (From: Wade Williams <email@hidden>)
 >Re: Shark not profiling correctly on command-line tool (From: Rick Altherr <email@hidden>)

  • Prev by Date: Re: Question about symbol visibility link warning
  • Next by Date: RE: Xcode Startup Error: The Mac OS X platform is missing
  • Previous by thread: Re: Shark not profiling correctly on command-line tool
  • Next by thread: parse error before "__AVAILABILITY_INTERNAL__MAC_10_5"
  • Index(es):
    • Date
    • Thread