Class SequenceCountOperation
- java.lang.Object
-
- org.adoptopenjdk.jitwatch.jarscan.sequencecount.SequenceCountOperation
-
- All Implemented Interfaces:
IJarScanOperation
- Direct Known Subclasses:
NextInstructionOperation
public class SequenceCountOperation extends java.lang.Object implements IJarScanOperation
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Opcode>chainprotected java.util.Map<InstructionSequence,java.lang.Integer>chainCountMapprivate intmaxLength
-
Constructor Summary
Constructors Constructor Description SequenceCountOperation(int maxLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private intgetIndexForBCI(java.util.List<BytecodeInstruction> instructions, int bci)java.lang.StringgetReport()java.util.Map<InstructionSequence,java.lang.Integer>getSequenceScores()java.util.List<java.util.Map.Entry<InstructionSequence,java.lang.Integer>>getSortedData()private voidhandleChainStartingAtIndex(int index, java.util.List<BytecodeInstruction> instructions)voidprocessInstructions(java.lang.String className, MemberBytecode memberBytecode)voidreset()private voidstoreChain()
-
-
-
Field Detail
-
chainCountMap
protected java.util.Map<InstructionSequence,java.lang.Integer> chainCountMap
-
chain
private java.util.List<Opcode> chain
-
maxLength
private int maxLength
-
-
Method Detail
-
storeChain
private void storeChain()
-
getSequenceScores
public java.util.Map<InstructionSequence,java.lang.Integer> getSequenceScores()
-
getSortedData
public java.util.List<java.util.Map.Entry<InstructionSequence,java.lang.Integer>> getSortedData()
-
reset
public void reset()
-
processInstructions
public void processInstructions(java.lang.String className, MemberBytecode memberBytecode)- Specified by:
processInstructionsin interfaceIJarScanOperation
-
handleChainStartingAtIndex
private void handleChainStartingAtIndex(int index, java.util.List<BytecodeInstruction> instructions)
-
getIndexForBCI
private int getIndexForBCI(java.util.List<BytecodeInstruction> instructions, int bci)
-
getReport
public java.lang.String getReport()
- Specified by:
getReportin interfaceIJarScanOperation
-
-