APIdia Launch Partner
Top Fields Constructors Methods
sun.jvm.hotspot.oops

public Class ObjectHistogram

extends Object
implements HeapVisitor
Class Inheritance
All Implemented Interfaces
sun.jvm.hotspot.oops.HeapVisitor
Imports
java.io.*, java.util.*

Field Summary

Modifier and TypeField and Description
private HashMap<Klass, ObjectHistogramElement>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public void
public List<ObjectHistogramElement>
getElements()

Call this after the iteration is complete to obtain the ObjectHistogramElements in descending order of total heap size consumed.

public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mapback to summary
private HashMap<Klass, ObjectHistogramElement> map

Constructor Detail

ObjectHistogramback to summary
public ObjectHistogram()

Method Detail

doObjback to summary
public boolean doObj(Oop obj)

Implements sun.jvm.hotspot.oops.HeapVisitor.doObj.

epilogueback to summary
public void epilogue()

Implements sun.jvm.hotspot.oops.HeapVisitor.epilogue.

getElementsback to summary
public List<ObjectHistogramElement> getElements()

Call this after the iteration is complete to obtain the ObjectHistogramElements in descending order of total heap size consumed.

printOnback to summary
public void printOn(PrintStream tty)
prologueback to summary
public void prologue(long size)

Implements sun.jvm.hotspot.oops.HeapVisitor.prologue.