public class ObjectHistogram extends java.lang.Object implements HeapVisitor
Constructor and Description |
---|
ObjectHistogram() |
Modifier and Type | Method and Description |
---|---|
boolean |
doObj(Oop obj) |
void |
epilogue() |
java.util.List |
getElements()
Call this after the iteration is complete to obtain the
ObjectHistogramElements in descending order of total heap size
consumed in the form of a List
|
void |
print() |
void |
printOn(java.io.PrintStream tty) |
void |
prologue(long size) |
public void prologue(long size)
prologue
in interface HeapVisitor
public boolean doObj(Oop obj)
doObj
in interface HeapVisitor
public void epilogue()
epilogue
in interface HeapVisitor
public java.util.List getElements()
public void print()
public void printOn(java.io.PrintStream tty)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.