Package com.google.caliper.memory
Class ObjectGraphMeasurer.Footprint
- java.lang.Object
-
- com.google.caliper.memory.ObjectGraphMeasurer.Footprint
-
- Enclosing class:
- ObjectGraphMeasurer
public static final class ObjectGraphMeasurer.Footprint extends Object
The footprint of an object graph.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetAllReferences()Returns the number of all references (null and non-null) of this footprint.intgetNonNullReferences()Returns the number of non-null references of this footprint.intgetNullReferences()Returns the number of null references of this footprint.intgetObjects()Returns the number of objects of this footprint.com.google.common.collect.ImmutableMultiset<Class<?>>getPrimitives()Returns the number of primitives of this footprint (represented by the respective primitive classes, e.g.int.classetc).inthashCode()StringtoString()
-
-
-
Constructor Detail
-
Footprint
public Footprint(int objects, int nonNullRefs, int nullRefs, com.google.common.collect.Multiset<Class<?>> primitives)Constructs a Footprint, by specifying the number of objects, references, and primitives (represented as aMultiset).- Parameters:
objects- the number of objectsnonNullRefs- the number of non-null referencesnullRefs- the number of null referencesprimitives- the number of primitives (represented by the respective primitive classes, e.g.int.classetc)
-
-
Method Detail
-
getObjects
public int getObjects()
Returns the number of objects of this footprint.
-
getNonNullReferences
public int getNonNullReferences()
Returns the number of non-null references of this footprint.
-
getNullReferences
public int getNullReferences()
Returns the number of null references of this footprint.
-
getAllReferences
public int getAllReferences()
Returns the number of all references (null and non-null) of this footprint.
-
getPrimitives
public com.google.common.collect.ImmutableMultiset<Class<?>> getPrimitives()
Returns the number of primitives of this footprint (represented by the respective primitive classes, e.g.int.classetc).
-
-