Class SnapFormatCommand
java.lang.Object
com.ibm.j9ddr.tools.ddrinteractive.Command
com.ibm.j9ddr.tools.ddrinteractive.commands.SnapBaseCommand
com.ibm.j9ddr.tools.ddrinteractive.commands.SnapFormatCommand
- 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 TypeMethodDescriptionvoidrun(String command, String[] args, Context context, PrintStream out) Options should be: -f outputFile -t vmthread -d .dat file pathprotected voidwriteBytesToTrace(Context context, long address, int bufferSize, PrintStream out) protected voidwriteHeaderBytesToTrace(Context context, byte[] headerBytes, PrintStream out) Methods declared in class SnapBaseCommand
extractTraceData, getCStringAtAddress, getCStringAtAddressModifier and TypeMethodDescriptionprotected voidextractTraceData(Context context, PrintStream out) Used by subclasses to actually walk the trace data in the core.getCStringAtAddress(IProcess process, long address) getCStringAtAddress(IProcess process, long address, long maxLength) Methods 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
-
SnapFormatCommand
public SnapFormatCommand()
-
-
Method Details
-
run
public void run(String command, String[] args, Context context, PrintStream out) throws DDRInteractiveCommandException Options should be: -f outputFile -t vmthread -d .dat file path- 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.)
-
writeHeaderBytesToTrace
-
writeBytesToTrace
-