• 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:Non-priv way to collect job stats under Intel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:Non-priv way to collect job stats under Intel?


  • Subject: Re:Non-priv way to collect job stats under Intel?
  • From: Jeffrey Johnson <email@hidden>
  • Date: Fri, 4 Aug 2006 10:47:23 -0400

On 8/2/06 at 12:02 PM, email@hidden wrote:
>>  >Does sysctl on kern.proc work for this? (See the example in the
>>>sysctl 3 man page.)
>>>
>>>I grabbed some source described here:
>>>http://ezine.daemonnews.org/200205/sysctl-netbsd.html
>>>
>>>I had to change some "struct proc" declarations to "struct
>>>extern_proc", but then it compiles. Running it against my local user
>>>didn't correctly sum up my CPU usage, but it did correctly count my
>>>processes.
>>
>>Thanks for the link.. but I encountered the same result, it didn't
>>return the CPU usage (just zeros), so I wonder if it suffers from
>>the same "can't get stats from a running process" limitation as
>>getrusage(). I pulled it into gdb and looked at the extern_proc
>>p_rtime and p_cputicks fields. (Heck, I showed the whole struct and
>>every time-like field was empty except __p_starttime.)
>>
>
>I think this is an OS bug. Please file a radar bug about this issue,
>as an external need carries more weight.
>
>-pmb

Done- filed as <rdar://4667814>.


Thanks
Jeffrey Johnson
Macintosh Development
Wavefunction, Inc.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Total RAM slot count obtained programatically
  • Next by Date: Launchd domain socket permission problem
  • Previous by thread: Re: Non-priv way to collect job stats under Intel?
  • Next by thread: kld(): Undefined Symbols error
  • Index(es):
    • Date
    • Thread