Class FrameSeparator
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.stacktrace.FrameSeparator
-
public class FrameSeparator extends Object
Helper class used to compare stacktrace frames when grouping them into different branches in thestacktrace model
.There are two dimensions to consider when comparing frames. The first is the level of detail in a frame, where package is the most general and byte code index is the most specific. The second is if different optimization levels (see
IMCFrame.Type
) should be treated as equal or not.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FrameSeparator.FrameCategorization
-
Constructor Summary
Constructors Constructor Description FrameSeparator(FrameSeparator.FrameCategorization categorization, boolean distinguishFramesByOptimization)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
FrameSeparator.FrameCategorization
getCategorization()
int
hashCode()
boolean
isDistinguishFramesByOptimization()
boolean
isSeparate(IMCFrame frameA, IMCFrame frameB)
Check if two frames are different according to this frame separator.
-
-
-
Constructor Detail
-
FrameSeparator
public FrameSeparator(FrameSeparator.FrameCategorization categorization, boolean distinguishFramesByOptimization)
- Parameters:
categorization
- How much detail to look at when comparing frames.distinguishFramesByOptimization
- True to treat different compiled versions of the code as different.
-
-
Method Detail
-
getCategorization
public FrameSeparator.FrameCategorization getCategorization()
-
isDistinguishFramesByOptimization
public boolean isDistinguishFramesByOptimization()
-
isSeparate
public boolean isSeparate(IMCFrame frameA, IMCFrame frameB)
Check if two frames are different according to this frame separator.
-
-