Skip to content

Commit

Permalink
don't display useless size histograms
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Feb 15, 2014
1 parent cb98712 commit 908cd2c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions moar-gdb.py
Expand Up @@ -533,8 +533,11 @@ def summarize(self):
print "(freelist with", self.length_freelist, "entries)",
print ""

print "sizes of objects/stables:"
show_histogram(self.size_histogram, "key", True)
# does the allocator/copier set the size of the object to the exact bucket size
# automatically?
if len(self.size_histogram) > 1:
print "sizes of objects/stables:"
show_histogram(self.size_histogram, "key", True)
print "REPRs:"
show_histogram(self.repr_histogram)

Expand Down

0 comments on commit 908cd2c

Please sign in to comment.