Class StacktraceModel.Fork
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.stacktrace.StacktraceModel.Fork
-
- Enclosing class:
- StacktraceModel
public class StacktraceModel.Fork extends Object
A fork is a collection of branches that share a common parent branch. The fork also keeps track of which one of its branches is currently selected.This class might eventually be merged with the
StacktraceModel.Branch
class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description long
getAggregateItemsInFork()
SimpleArray<IItem>
getAllItemsInFork()
StacktraceModel.Branch
getBranch(int branchIndex)
int
getBranchCount()
StacktraceModel.Branch[]
getBranches()
StacktraceFrame[]
getFirstFrames()
long
getItemOffset()
int
getItemsInFork()
StacktraceModel.Branch
getParentBranch()
StacktraceModel.Branch
getSelectedBranch()
Deprecated.Will eventually be moved to UI codevoid
selectBranch(Integer branchIndex)
Deprecated.Will eventually be moved to UI code
-
-
-
Method Detail
-
getItemOffset
public long getItemOffset()
-
getItemsInFork
public int getItemsInFork()
-
getAggregateItemsInFork
public long getAggregateItemsInFork()
-
getAllItemsInFork
public SimpleArray<IItem> getAllItemsInFork()
-
getParentBranch
public StacktraceModel.Branch getParentBranch()
-
getBranchCount
public int getBranchCount()
-
getSelectedBranch
@Deprecated public StacktraceModel.Branch getSelectedBranch()
Deprecated.Will eventually be moved to UI code
-
getBranch
public StacktraceModel.Branch getBranch(int branchIndex)
-
getBranches
public StacktraceModel.Branch[] getBranches()
-
getFirstFrames
public StacktraceFrame[] getFirstFrames()
- Returns:
- the first frame of each child branch to this fork
-
selectBranch
@Deprecated public void selectBranch(Integer branchIndex)
Deprecated.Will eventually be moved to UI codeSelect a child branch by its index.- Parameters:
branchIndex
- Index of branch to select. If null, then selection will be cleared.
-
-