How to get program's memory usage?

Discussion in 'Perl Misc' started by kj, Feb 22, 2005.

  1. kj

    kj Guest

    Is there a portable way to determine how much memory a Perl script
    is consuming? Now I'm using `ps ho rss $$` (plus chomp, yaddayadda),
    but this is not very meaningful outside of Linux, let alone outside
    of Unix.

    Thanks!

    kj

    --
    NOTE: In my address everything before the first period is backwards;
    and the last period, and everything after it, should be discarded.
     
    kj, Feb 22, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. metfan
    Replies:
    2
    Views:
    4,991
    Robert Olofsson
    Oct 21, 2003
  2. Ian
    Replies:
    3
    Views:
    466
    Jean Brouwers
    Jul 10, 2004
  3. hvt
    Replies:
    0
    Views:
    1,334
  4. hvt
    Replies:
    0
    Views:
    1,661
  5. Todd
    Replies:
    4
    Views:
    634
    Jeff Higgins
    Sep 5, 2007
Loading...

Share This Page