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: Rick Altherr <email@hidden>
- Date: Thu, 19 Feb 2009 12:47:34 -0800
On Feb 19, 2009, at 12:35 PM, Wade Williams wrote:
On Feb 19, 2009, at 2:09 PM, Ken Thomases wrote:
On Feb 19, 2009, at 1:49 PM, Wade Williams wrote:
I've got a command-line tool (written in straight C) that Shark is
not generating any samples for.
[...] It runs as root since it attaches to port 80 and it stays
attached to the terminal that started it.
Are you using the command-line "shark" tool and also running it as
root? I'm guessing that unprivileged Shark (Shark.app or the tool)
is not allowed to sample a root-owned process.
Tried both launching the graphical Shark with sudo and running the
command-line shark under sudo. No change.
ERROR: Failed to collect session data [No samples taken.
[CHUDDataSource]].
Wade
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@apple.com
This email sent to email@hidden
Both versions of Shark run with appropriate privileges to introspect
any process on the system regardless of ownership. You do _not_ need
to nor should you run Shark under sudo.
--
Rick Altherr
Architecture and Performance Group
email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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