memory profiler?

Discussion in 'Python' started by John Reese, Apr 21, 2005.

  1. John Reese

    John Reese Guest

    Good afternoon, ha ha ha!

    Is there a memory or heap profiler for python programs? So that, for
    example, if a program was bloating over time I could see how many of
    each object there were and maybe even where the references were?
     
    John Reese, Apr 21, 2005
    #1
    1. Advertising

  2. John Reese

    Peter Hansen Guest

    John Reese wrote:
    > Is there a memory or heap profiler for python programs? So that, for
    > example, if a program was bloating over time I could see how many of
    > each object there were and maybe even where the references were?


    The "gc" module has a variety of helpful features
    like that.

    -Peter
     
    Peter Hansen, Apr 21, 2005
    #2
    1. Advertising

  3. Peter Hansen wrote:

    > John Reese wrote:
    >> Is there a memory or heap profiler for python programs? So that, for
    >> example, if a program was bloating over time I could see how many of
    >> each object there were and maybe even where the references were?

    >
    > The "gc" module has a variety of helpful features
    > like that.


    I created a qt-based memory analyzer on top of the gc module. I plan to
    release it soon - it has been helpful to me for a few projects. Its a
    client-server application that collects data through an in-process running
    thread that delivers object histograms. The client fetches these and allows
    to display the development of objects based various criteria over the time.
    It can also record these data for offline-analysis. So far the in-proccess
    threads communicate their histograms either by pyro or xmlrpc servers.

    Unfortunately debugging ZOPE with the xmlrpc server lead to a mem-leak
    itself :( - so currently I'm no confident enough to release it.
    --
    Regards,

    Diez B. Roggisch
     
    Diez B. Roggisch, Apr 21, 2005
    #3
  4. John Reese

    John Reese Guest

    On Wed, 20 Apr 2005 23:06:51 -0400, Peter Hansen <> wrote:
    > John Reese wrote:
    >> Is there a memory or heap profiler for python programs? So that, for
    >> example, if a program was bloating over time I could see how many of
    >> each object there were and maybe even where the references were?

    >
    > The "gc" module has a variety of helpful features
    > like that.
    >
    > -Peter


    In particular, get_objects() and get_referrers(). Good point.
     
    John Reese, Apr 23, 2005
    #4
    1. Advertising

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. Matthew Fleming

    memory profiler recommendation

    Matthew Fleming, May 4, 2004, in forum: Java
    Replies:
    2
    Views:
    365
    Roedy Green
    May 6, 2004
  2. taurean
    Replies:
    1
    Views:
    612
    John Harrison
    Apr 30, 2004
  3. Wayne Gibson

    Java Profiler - Memory leaks

    Wayne Gibson, Jun 21, 2006, in forum: Java
    Replies:
    2
    Views:
    450
    Larry Barowski
    Jun 21, 2006
  4. Dave

    Memory Profiler

    Dave, Jan 11, 2006, in forum: Python
    Replies:
    2
    Views:
    8,601
    Stephen Kellett
    Jan 11, 2006
  5. potatosoftware
    Replies:
    0
    Views:
    662
    potatosoftware
    Nov 4, 2009
Loading...

Share This Page