majflt field

K

kelly.shi

Guest
I need to get the page fault information for an application I am writing. But the majflt doesn't seem to be available from either ps command or getrusage call. It looks like it's implemented but all calls to getrusage returns 0 for majflt and execution on ps returns '-' no matter what. Is there a way to get the page fault information on Darwin then? Please advise!
I am using Darwin Kernel Version 7.5.0
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top