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.
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.
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 - #
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 - #
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 - #