C/C++ Find current process rss

lukesky21

New Member


Messages: 3

In a C/C++ program I need to find the current process's rss memory usage. In Linux I can get that from /proc/PID/statm but /proc doesn't exist in FreeBSD. I looked at getrusage(2) but that looks to only return the maximum RSS of the process which is not what I need.
Are there any ways to get that information in FreeBSD?
 
OP
L

lukesky21

New Member


Messages: 3

I understand that and I would rather not enable the proc file system. I would like to be able to pull the current process RSS directly from a C/C++ API. Is that possible?
 
Top