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?
Are there any ways to get that information in FreeBSD?