tracking memory usage

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Erik Johnson

    tracking memory usage


    Sort of two questions here:

    The first is about the internal view: are there Python introspection
    functions that can be called such that a running script can keep tabs on how
    much memory is being used?

    And the second is about using either os or system calls on Windows such
    that a Python script could get similar information about other processes
    (i.e., external)?

    Thanks,
    -ej


  • kyosohma@gmail.com

    #2
    Re: tracking memory usage

    On Mar 19, 11:34 am, "Erik Johnson" <nob...@invalid .comwrote:
    Sort of two questions here:
    >
    The first is about the internal view: are there Python introspection
    functions that can be called such that a running script can keep tabs on how
    much memory is being used?
    >
    And the second is about using either os or system calls on Windows such
    that a Python script could get similar information about other processes
    (i.e., external)?
    >
    Thanks,
    -ej
    >From what I've found, it would seem that this is in development. See
    the following:



    I also found a cool recipe for doing some of what you want, but it's
    only been tested on Linux. You might be able to modify it for your
    needs, if you don't mind delving into process ids:



    Good luck!

    Mike

    Comment

    Working...