Meliae, a python memory debugging tool

John Arbash Meinel john at arbash-meinel.com
Fri Sep 11 17:09:45 BST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

So I've officially come up with a name for "py_memory_dump": Meliae

It means "Ash-wood Nymph" from Greek Mythology. Not particularly
related, but a fun word and not already used elsewhere.

There has been a bit more recent activity, with Robert doing some
cleanup to get it working on 64-bit, and myself doing a bit more work
getting some more 'interactive' functions, rather than always dumping to
disk and loading back into memory.

Robert also has some ongoing work to be able to support the really big
dump files, like his 6GB memory monstrosity. Storing the data in a
b+tree index file, and querying that has some interesting promise,
though I think you could also just put it into an sqlite table and have
it write the btree index for you...

It isn't documented terribly well yet, because I feel like I need some
experience using it, so that I can refine the api to be friendly.

Anyway, the trunk currently passes the test suite on 32 and 64-bit
Linux, and 32-bit Windows (py2.5 using mingw and 2.6 using Visual
Studio). I'd like to do 64-bit Windows testing, but don't have a machine
available for that.

For people interested in poking around with it, the current most
interesting functions are:

from meliae import scanner, loader
scanner.dump_gc_objects('filename')

and then
om = loader.load('filename')
om.summarize()


John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqqdkkACgkQJdeBCYSNAAMYfwCfQPmG8Yv8hdcep8llKiJxLO06
ivoAoJPgeazz90oww1Kq3X2P65LXQ+4T
=JEAT
-----END PGP SIGNATURE-----



More information about the bazaar mailing list