[ANN] Meliae 0.3.0

John Arbash Meinel john at arbash-meinel.com
Mon Aug 2 19:36:23 BST 2010


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

I've been doing some hacking on Meliae as part of debugging the
gcc-linaro memory consumption, so I went ahead and released the new
code. Meliae is a library for debugging memory consumption in python.
Some basic overviews are available here:
http://jam-bazaar.blogspot.com/search/label/meliae

The CHANGES entry gives a bit of the nitty gritty as to what has been
updated, so I'll just copy it here.

John
=:->

Meliae 0.3
##########

:0.3: 2010-08-02

The main update is the ability to do more queries on a subset of
the object graph. ``om.summarize(starting_at, excluding=[address])``
lets you find out what is more directly "owned" by a given object.

* Add ``__sizeof__`` members to a lot of the core classes (IntSet,
  etc.) (John Arbash Meinel)

* ``ObjectManager.compute_total_size()`` now only computes the size of
  a single object, rather than all objects. All objects took too long
  to be useful anyway, better to make it easier to use the useful api.
  (John Arbash Meinel)

* ``obj.iter_recursive_refs()`` can now be used to find all objects
  referenced from this object (including obj). It can also take an
  iterable of object addresses to exclude. Which makes it easy to ask,
  "What objects are accessible from X that aren't accessible from Y?"
  (John Arbash Meinel)

* ``ObjectManager.summarize()`` can now take an object and an exclusion
  list, and summarize the referenced objects. This can be quite useful
  when you want to look at just a subset of the graph. The syntax is
  ``ObjectManager.summarize(obj, [not_address1, not_address2])``.
  (John Arbash Meinel)

* ``obj.all()`` and ``obj.compute_total_size()`` helpers. These let you
  get the set of referenced objects matching the type (like
  ``om.get_all()``). But they *also* allow you to pass an exclusion
  list, so you can only get things reachable from here and not
  reachable from there. (John Arbash Meinel)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxXECcACgkQJdeBCYSNAAM2TACgqO1E4l/fxoGwDQYpSdg3gq51
GVYAoK1pLSWR/ZSKhpeMgWf26Oiy38qe
=plPq
-----END PGP SIGNATURE-----



More information about the bazaar mailing list