Add simple instance count facility

Desktop / GNOME / GLib - Owen W. Taylor [fishsoup.net] - 11 October 2014 12:54 UTC

Add GOBJECT_DEBUG=instance-count which enables internal accounting of the number of instances of each GType, and g_type_get_instance_count() to retrieve the result.

https://bugzilla.gnome.org/show_bug.cgi?id=354457

011bf87 Add simple instance count facility
gobject/gtype.c | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++-
gobject/gtype.h | 6 +++++-
2 files changed, 55 insertions(+), 2 deletions(-)

Upstream: git.gnome.org


  • Share