I have a C ++ application called. / blah (to which I have the source code)
when i run. / blah
I can run "top" and see how much memory and processor "./blah" is using.
Now, anyway, to access this information? That is when I run. / blah, I want every second dump of its CPU and memory usage. What library should I use for this?
I am on MacOSX; but I would prefer a solution that also works on Linux.
Thank!
source
share