gobject-introspection r489 - trunk/giscanner
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r489 - trunk/giscanner
- Date: Mon, 25 Aug 2008 01:51:46 +0000 (UTC)
Author: walters
Date: Mon Aug 25 01:51:46 2008
New Revision: 489
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=489&view=rev
Log:
Some statistics
Modified:
trunk/giscanner/glibtransformer.py
Modified: trunk/giscanner/glibtransformer.py
==============================================================================
--- trunk/giscanner/glibtransformer.py (original)
+++ trunk/giscanner/glibtransformer.py Mon Aug 25 01:51:46 2008
@@ -646,7 +646,16 @@
self._validating = True
while True:
initlen = len(nodes)
- print "Type resolution; pass=%d (%d nodes)" % (i, initlen)
+ def count_type(otype):
+ return len([x for x in nodes
+ if isinstance(x[1], otype)])
+ objectcount = count_type(GLibObject)
+ ifacecount = count_type(GLibInterface)
+ enumcount = count_type(GLibEnum)
+ boxedcount = count_type(GLibBoxed)
+ print "Type resolution; pass=%d" % (i, )
+ print " %d nodes; %d objects, %d interfaces, %d enums, %d boxed" \
+ % (initlen, objectcount, ifacecount, enumcount, boxedcount)
nodes = list(self._names.names.itervalues())
for node in nodes:
try:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]