public class PackStatistics extends Object
PackWriter
pack creation.Modifier and Type | Class and Description |
---|---|
static class |
PackStatistics.Accumulator
POJO for accumulating the statistics.
|
static class |
PackStatistics.ObjectType
Statistics about a single type of object (commits, tags, trees and
blobs).
|
Constructor and Description |
---|
PackStatistics(PackStatistics.Accumulator accumulator)
Creates a new
PackStatistics object from the accumulator. |
Modifier and Type | Method and Description |
---|---|
PackStatistics.ObjectType |
byObjectType(int typeCode) |
long |
getBitmapIndexMisses() |
Set<ObjectId> |
getClientShallowCommits() |
int |
getDeltaSearchNonEdgeObjects() |
int |
getDeltasFound() |
int |
getDepth() |
Set<ObjectId> |
getInterestingObjects() |
String |
getMessage() |
Map<Integer,PackStatistics.ObjectType> |
getObjectTypes() |
long |
getReusedDeltas() |
long |
getReusedObjects() |
List<CachedPack> |
getReusedPacks() |
Set<ObjectId> |
getRootCommits() |
long |
getThinPackBytes() |
long |
getTimeCompressing() |
long |
getTimeCounting() |
long |
getTimeSearchingForReuse() |
long |
getTimeSearchingForSizes() |
long |
getTimeTotal() |
long |
getTimeWriting() |
long |
getTotalBytes() |
long |
getTotalDeltas() |
long |
getTotalObjects() |
double |
getTransferRate() |
Set<ObjectId> |
getUninterestingObjects() |
boolean |
isShallow() |
public PackStatistics(PackStatistics.Accumulator accumulator)
PackStatistics
object from the accumulator.accumulator
- the accumulator of the statisticspublic Set<ObjectId> getInterestingObjects()
null
if the pack was hand-crafted in a unit test.public Set<ObjectId> getUninterestingObjects()
public Set<ObjectId> getClientShallowCommits()
public List<CachedPack> getReusedPacks()
public Set<ObjectId> getRootCommits()
public int getDeltaSearchNonEdgeObjects()
public int getDeltasFound()
getDeltaSearchNonEdgeObjects()
.public long getTotalObjects()
getTotalDeltas()
.public long getBitmapIndexMisses()
public long getTotalDeltas()
public long getReusedObjects()
getReusedDeltas()
.public long getReusedDeltas()
public long getTotalBytes()
public long getThinPackBytes()
public PackStatistics.ObjectType byObjectType(int typeCode)
typeCode
- object type code, e.g. OBJ_COMMIT or OBJ_TREE.public boolean isShallow()
public int getDepth()
public long getTimeCounting()
public long getTimeSearchingForReuse()
public long getTimeSearchingForSizes()
public long getTimeCompressing()
public long getTimeWriting()
getTotalBytes()
by this value.public long getTimeTotal()
public double getTransferRate()
getTotalBytes() / (getTimeWriting() / 1000.0)
.public String getMessage()
public Map<Integer,PackStatistics.ObjectType> getObjectTypes()
Copyright © 2016 Eclipse JGit Project. All rights reserved.