]> source.dussan.org Git - jgit.git/commit
PackWriter: Collect stats by object type 75/2775/2
authorShawn O. Pearce <spearce@spearce.org>
Fri, 18 Mar 2011 14:27:41 +0000 (07:27 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 18 Mar 2011 18:31:12 +0000 (11:31 -0700)
commitbb1956e647d2f48ef36ef98a7f22120fdad0b37c
treed67c3fe22513bbfc6cc372c309dd5c35d0013dc6
parent62fe7c7313e4e7a4339fe9df3a9dc2335461df29
PackWriter: Collect stats by object type

Frequently enough I'm wondering how much of a pack is commits vs.
trees, and the total line doesn't really tell us this because its
a gross total from the pack. Computing the counts per object type
is simple during packing, as PackWriter already has everything in
memory broken up by object type.  Its virtually free to get these
values and track them.

Change-Id: Id5e6b1902ea909c72f103a0fbca5d8bc316f9ab3
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java