Class DumpSegregatedStatsCommand
java.lang.Object
com.ibm.j9ddr.tools.ddrinteractive.Command
com.ibm.j9ddr.vm29.tools.ddrinteractive.commands.DumpSegregatedStatsCommand
- All Implemented Interfaces:
ICommand
-
Nested Class Summary
Nested classes/interfaces declared in class Command
Command.CommandDescription -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetFreeCellCount(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionDescriptorSegregatedPointer heapRegionDescriptor) Count the number of free cells in the MM_HeapRegionDescriptorSegregatedPointer freelistlonggetFreeCellCount(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionListPointer heapRegionList) Count the number of free cells in the entire MM_HeapRegionListlonggetTotalRegions(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionListPointer heapRegionList) Based off of MM_HeapRegionQueue::getTotalRegions.voidrun(String command, String[] args, Context context, PrintStream out) Executes the commandMethods declared in class Command
addCommand, addSubCommand, dbgFindPatternInRange, getCommandDescriptions, getCommandNames, printDetailedHelp, recognisesModifier and TypeMethodDescriptionaddCommand(String name, String argDescription, String helpDescription) voidaddSubCommand(Command.CommandDescription command, String name, String argDescription, String helpDescription) protected longdbgFindPatternInRange(Context context, byte[] pattern, int patternAlignment, long startSearchFrom, BigInteger bytesToSearch) voidThis prints the detailed help for the command by listing all the names that this command can be invoked by and also any sub commands that have been defined.booleanrecognises(String command, Context context) Method used by the DDR Interactive engine to decide whether this command matches the command passed in by the user
-
Constructor Details
-
DumpSegregatedStatsCommand
public DumpSegregatedStatsCommand()
-
-
Method Details
-
getTotalRegions
public long getTotalRegions(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionListPointer heapRegionList) throws CorruptDataException Based off of MM_HeapRegionQueue::getTotalRegions. Returns the number of regions. This function will calculate the number of regions differently according to the type of the actual subclass.- Throws:
CorruptDataException
-
getFreeCellCount
public long getFreeCellCount(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionListPointer heapRegionList) throws CorruptDataException Count the number of free cells in the entire MM_HeapRegionList- Throws:
CorruptDataException
-
getFreeCellCount
public long getFreeCellCount(com.ibm.j9ddr.vm29.pointer.generated.MM_HeapRegionDescriptorSegregatedPointer heapRegionDescriptor) throws CorruptDataException Count the number of free cells in the MM_HeapRegionDescriptorSegregatedPointer freelist- Throws:
CorruptDataException
-
run
public void run(String command, String[] args, Context context, PrintStream out) throws DDRInteractiveCommandException Description copied from interface:ICommandExecutes the command- Parameters:
command- Command string e.g. !j9xargs- Arguments for commandcontext- Context to work inout- PrintStream to write command output on- Throws:
DDRInteractiveCommandException- If there is any problem running the command (incorrect usage, CorruptData etc.)
-