protected static class ClassHistogramVisitor.HistogramEntry extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Comparator<ClassHistogramVisitor.HistogramEntry> |
byDecreasingCount |
protected static Comparator<ClassHistogramVisitor.HistogramEntry> |
byDecreasingSpace |
protected static Comparator<ClassHistogramVisitor.HistogramEntry> |
byIncreasingCount
Sort by count.
|
protected static Comparator<ClassHistogramVisitor.HistogramEntry> |
byIncreasingSpace
Sort by space.
|
protected static Comparator<ClassHistogramVisitor.HistogramEntry> |
byName
Sort by name.
|
protected String |
className
The name of the class.
|
protected long |
instanceCount
The count of all the instances.
|
protected long |
instanceSpace
The space taken up by all the instances.
|
| Modifier | Constructor and Description |
|---|---|
protected |
HistogramEntry(String className)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static ClassHistogramVisitor.HistogramEntry |
factory(String className) |
String |
getClassName() |
long |
getInstanceCount() |
long |
getInstanceSpace() |
void |
reset() |
protected final String className
protected long instanceCount
protected long instanceSpace
protected static Comparator<ClassHistogramVisitor.HistogramEntry> byName
protected static Comparator<ClassHistogramVisitor.HistogramEntry> byIncreasingCount
protected static Comparator<ClassHistogramVisitor.HistogramEntry> byDecreasingCount
protected static Comparator<ClassHistogramVisitor.HistogramEntry> byIncreasingSpace
protected static Comparator<ClassHistogramVisitor.HistogramEntry> byDecreasingSpace
protected HistogramEntry(String className)
public static ClassHistogramVisitor.HistogramEntry factory(String className)
public String getClassName()
public long getInstanceCount()
public long getInstanceSpace()
public void reset()