Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: knowing memory usage



i am sure there is a function to do this nicely, but i think it would
most likely just read the file

/proc/meminfo

and spit back the results,  is this correct someone?

Hector Akamine wrote:
> 
> Hi,
> 
> I have a C program in linux, and I want to know how much memory it is
> using.
> Is there any system call or function which I can call to know this?
> 
> Thanks in advance
> 
> -----------------------------------------------------------------------
> Next Nomikai Meeting:    Fri, February 16 19:30- Tengu Tokyo Eki Mae
> Next Technical Meeting:  March (date TBA)
> -----------------------------------------------------------------------
> more info: http://www.tlug.gr.jp           Sponsor: Global Online Japan


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links