Memory usage of user space process with C++ program

Hello There,

I want to write a C++ program which can find consolidated real memory used by top 100 memory extensive user space processes (some thing similar to what top command does). However, I don't want to execute top command through C++ program.

Is there any system call or library that I can you to achieve this ?

Many thanks,

- Vinod
 
Back
Top