how to read size of process memory programatically?

Discussion in 'Unix' started by douglaskbell, Feb 19, 2010.

  1. douglaskbell

    douglaskbell New Member

    Joined:
    Feb 19, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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'.)
     
  2. en_7123

    en_7123 New Member

    Joined:
    Feb 11, 2010
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    0
    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 ??
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice