Mailing List Archive

Support open source code!


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

Re: knowing memory usage



Just to see the size of a running process from shell use ps or top. If
you want to do it from a program, Proc::ProcessTable is very nice
(Perl). If you want to write it in C (it's OS-dependent), see the
source code of the mentioned Perl module.

Hope this helps.

Viktor


>>>>> On Mon, 22 Jan 2001 18:15:47 +0900, Hector Akamine <akamine@example.com> said:

    HA> Hi, I have a C program in linux, and I want to know how much
    HA> memory it is using.  Is there any system call or function
    HA> which I can call to know this?

    HA> Thanks in advance

    HA> -----------------------------------------------------------------------
    HA> Next Nomikai Meeting: Fri, February 16 19:30- Tengu Tokyo Eki
    HA> Mae Next Technical Meeting: March (date TBA)
    HA> -----------------------------------------------------------------------
    HA> 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