- java.lang.Object
-
- com.ibm.j9ddr.vm29.tools.ddrinteractive.LinearDumper
-
- All Implemented Interfaces:
IClassWalkCallbacks
public class LinearDumper extends Object implements IClassWalkCallbacks
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LinearDumper.J9ClassRegion
Private class used to store the regions.static class
LinearDumper.J9ClassRegionNode
-
Nested classes/interfaces declared in interface com.ibm.j9ddr.vm29.tools.ddrinteractive.IClassWalkCallbacks
IClassWalkCallbacks.SlotType
-
-
Constructor Summary
Constructors Constructor Description LinearDumper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRegion(StructurePointer clazz, IClassWalkCallbacks.SlotType type, AbstractPointer slotPtr, String slotName, long length, boolean computePadding)
void
gatherLayoutInfo(PrintStream out, ClassWalker classWalker, long nestingThreshold)
Prints a class in a linear way to the PrintStreamLinearDumper.J9ClassRegionNode
getAllRegions(ClassWalker classWalker)
Returns a tree of regions and slots.static void
printAllRegions(PrintStream out, StructurePointer clazz, long nestingThreshold, LinearDumper.J9ClassRegionNode regionNode, int nesting)
-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods declared in interface com.ibm.j9ddr.vm29.tools.ddrinteractive.IClassWalkCallbacks
addSection, addSlot, addSlot
-
-
-
-
Method Detail
-
addRegion
public void addRegion(StructurePointer clazz, IClassWalkCallbacks.SlotType type, AbstractPointer slotPtr, String slotName, long length, boolean computePadding) throws CorruptDataException
- Throws:
CorruptDataException
-
getAllRegions
public LinearDumper.J9ClassRegionNode getAllRegions(ClassWalker classWalker) throws CorruptDataException
Returns a tree of regions and slots. Each slot is under a region. The root element is always null.- Parameters:
classWalker
-- Returns:
- J9ClassRegionNode tree of J9ClassRegion
- Throws:
CorruptDataException
-
gatherLayoutInfo
public void gatherLayoutInfo(PrintStream out, ClassWalker classWalker, long nestingThreshold) throws CorruptDataException
Prints a class in a linear way to the PrintStream- Parameters:
out
-classWalker
- an instance of a IClassWalkernestingThreshold
- the level of detail. Level 1 prints the sections and the sizes. Level 2 prints more details.- Throws:
CorruptDataException
-
printAllRegions
public static void printAllRegions(PrintStream out, StructurePointer clazz, long nestingThreshold, LinearDumper.J9ClassRegionNode regionNode, int nesting) throws CorruptDataException
- Throws:
CorruptDataException
-
-