> the only way to is shell out and scrape the output of ps
Why couldn't you just read /proc/self/status and /proc/self/smaps in process? Would be like an order of magnitude less expensive.
Why couldn't you just read /proc/self/status and /proc/self/smaps in process? Would be like an order of magnitude less expensive.
Best way to get the right answer on the internet is to post the wrong one.