Getting process's memory usage
Peter A. Friend
pafriend@octavian.org
Fri May 16 23:00:00 GMT 2008
Tom Browder wrote:
> On 5/16/08, Manal Helal <manalorama@gmail.com> wrote:
>
>> Hi Eljay
>>
>> That's very intuitive idea :) my mind was focused on finding a
>> function to use in the source code,
>>
>
> I'll bet valgrind has a way to do it.
>
I have used a couple different methods. On Solaris I have either read
the appropriate /proc entry for the process, or used the vmalloc
library, which has a number of nice features:
http://www.research.att.com/~gsf/download/ref/vmalloc/vmalloc.html
Peter
More information about the Gcc-help
mailing list