Rev 18: Change it to show when we are working on the inv map versus the p_id map. in http://bazaar.launchpad.net/%7Ebzr/bzr-repodetails/trunk

John Arbash Meinel john at arbash-meinel.com
Tue Jan 6 18:00:08 GMT 2009


At http://bazaar.launchpad.net/%7Ebzr/bzr-repodetails/trunk

------------------------------------------------------------
revno: 18
revision-id: john at arbash-meinel.com-20090106175936-u0robeaqahsw2zym
parent: john at arbash-meinel.com-20081224175257-qg4ok98lp2x6hh2k
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: trunk
timestamp: Tue 2009-01-06 11:59:36 -0600
message:
  Change it to show when we are working on the inv map versus the p_id map.
-------------- next part --------------
=== modified file 'gather_stats.py'
--- a/gather_stats.py	2008-12-24 17:52:57 +0000
+++ b/gather_stats.py	2009-01-06 17:59:36 +0000
@@ -212,7 +212,7 @@
 
 
 def _gather_chk_map(objectstats, chk_bytes, pending, internal_counter,
-                    leaf_counter, depth_counter):
+                    leaf_counter, depth_counter, name):
     done = set()
     depth = 0
     while pending:
@@ -221,7 +221,7 @@
         done.update(pending)
         next = pending
         pending = set()
-        kind = 'chk %d' % (depth,)
+        kind = '%s %d' % (name, depth,)
         for bytes, key in _gather_and_iter_object_vf_texts(objectstats,
                             chk_bytes, next, kind=kind):
             node = chk_map._deserialise(bytes, key)
@@ -249,9 +249,11 @@
         if inv.parent_id_basename_to_file_id is not None:
             pending_parent_id.add(inv.parent_id_basename_to_file_id._root_node)
     _gather_chk_map(objectstats, repo.chk_bytes, pending,
-                    'internal node refs', 'leaf node items', 'inv depth')
+                    'internal node refs', 'leaf node items', 'inv depth',
+                    'chk inv')
     _gather_chk_map(objectstats, repo.chk_bytes, pending_parent_id,
-                    'internal p_id refs', 'leaf p_id items', 'p_id depth')
+                    'internal p_id refs', 'leaf p_id items', 'p_id depth',
+                    'chk p_id')
 
 
 def _gather_stats_locked(repo):



More information about the bazaar-commits mailing list