Hi all,
I'd be glad of any help with either or both of the following questions:
1. What would be the preferred (or most efficient) way of getting an application's current VmSize programatically?
2. Assuming (as I suspect) that the best way to get the above data is from /proc/<pid>/status, can anybody point me to the best way to parse this file?
Essentially what I would need to do in that case is the C equivalent of the following:
grep -i vmsize /proc/<pid>/status | awk '{print $2}'
Thanks in anticipation,
Ruairi