title: Looking for something like getrusage() in C++
body: <p>getrusage() can display the amount of memory used by the children of a process. I am creating a shell from which I will launch several child programs. getrusage() will report the total sum of memory all of these children are using, which is not what I want. I want to know how much memory each child is using. getrusage() looks like something I would like to use except it doesn't work for individual child processes. What is like it that can be used?</p>