Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Unix (http://www.go4expert.com/forums/unix-forum/)
-   -   how to read size of process memory programatically? (http://www.go4expert.com/forums/read-size-process-memory-programatically-t21049/)

douglaskbell 20Feb2010 00:43

how to read size of process memory programatically?
 
I'm tracking a memory leak in a C/C++ program on Solaris.

Is the a function to let a process programatically get its present size of memory usage?
(Like, what gets displayed for 'size' when you run 'top'.)

en_7123 12Mar2010 02:23

Re: how to read size of process memory programatically?
 
Quote:

Originally Posted by douglaskbell (Post 64510)
I'm tracking a memory leak in a C/C++ program on Solaris.

Is the a function to let a process programatically get its present size of memory usage?
(Like, what gets displayed for 'size' when you run 'top'.)

Yes it is not difficult if I'm understanding it right what you are asking.Could you tell what exactly you want to do.And what is run top ??


All times are GMT +5.5. The time now is 22:49.