Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

Finding and fixing memory leaks in Python. Using Dozer, a clever piece of WSGI middleware which displays sparklines of Python object counts and allows you to introspect them, using the gc module under the hood.

Tagged , , , , , ,

3 comments

  1. FWIW, it's actually "dowser", one of Robert Brewer's many great pieces of code:
    http://www.aminus.net/wiki/Dowser

    Jeremy Dunck - 23rd April 2009 03:58 - #

  2. OK, to correct myself, there is a WSGI wrapper, named "dozer", over Brewer's Dowser. I was confused because the entry at amix.dk points to dowser, not dozer.

    Jeremy Dunck - 23rd April 2009 04:01 - #

  3. Also, a quick hack later:
    --
    #!/usr/bin/env python
    import dozer
    from werkzeug import run_simple
    from django.core.handlers.wsgi import WSGIHandler

    run_simple('localhost', 8000, dozer.Dozer(WSGIHandler(), True))

    (I already was using werkzeug.)
    ---
    http://localhost:8000/_dozer/index/
    Useful.

    Jeremy Dunck - 23rd April 2009 04:13 - #

Comments are closed.
A django site