Class StacktraceTreeModel
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.stacktrace.tree.StacktraceTreeModel
-
public class StacktraceTreeModel extends Object
-
-
Constructor Summary
Constructors Constructor Description StacktraceTreeModel(IItemCollection items)
Builds a StacktraceTreeModel from a given collection of events with defaults: frame separator METHOD, the thread root at the top and no value attribute (uses counts).StacktraceTreeModel(IItemCollection items, FrameSeparator frameSeparator)
Builds a StacktraceTreeModel from a given collection of events with defaults: the thread root at the top and no value attribute (uses counts).StacktraceTreeModel(IItemCollection items, FrameSeparator frameSeparator, boolean invertedStacks)
Builds a StacktraceTreeModel from a given collection of events with no attribute specified (uses occurrences to determine node weight).StacktraceTreeModel(IItemCollection items, FrameSeparator frameSeparator, boolean invertedStacks, IAttribute<IQuantity> attribute)
Builds a StacktraceTreeModel from a given collection of events.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IAttribute<IQuantity>
getAttribute()
IItemCollection
getItems()
Node
getRoot()
-
-
-
Constructor Detail
-
StacktraceTreeModel
public StacktraceTreeModel(IItemCollection items)
Builds a StacktraceTreeModel from a given collection of events with defaults: frame separator METHOD, the thread root at the top and no value attribute (uses counts).- Parameters:
items
- the data we want to represent.
-
StacktraceTreeModel
public StacktraceTreeModel(IItemCollection items, FrameSeparator frameSeparator)
Builds a StacktraceTreeModel from a given collection of events with defaults: the thread root at the top and no value attribute (uses counts).- Parameters:
items
- the data we want to represent.frameSeparator
- defines what represents a node in the tree. Defaults to METHOD.
-
StacktraceTreeModel
public StacktraceTreeModel(IItemCollection items, FrameSeparator frameSeparator, boolean invertedStacks)
Builds a StacktraceTreeModel from a given collection of events with no attribute specified (uses occurrences to determine node weight).- Parameters:
items
- the data we want to represent.frameSeparator
- defines what represents a node in the tree. Defaults to METHOD.invertedStacks
- defines how the stacks are aggregated. Defaults to false (i.e. bottom-up, Thread.run() at the root of the tree).
-
StacktraceTreeModel
public StacktraceTreeModel(IItemCollection items, FrameSeparator frameSeparator, boolean invertedStacks, IAttribute<IQuantity> attribute)
Builds a StacktraceTreeModel from a given collection of events.- Parameters:
items
- the data we want to represent.frameSeparator
- defines what represents a node in the tree. Defaults to METHOD.invertedStacks
- defines how the stacks are aggregated. Defaults to false (i.e. bottom-up, Thread.run() at the root of the tree).attribute
- defines what we use as node weights. If null, the weight is the number of occurrences for the frame.
-
-
Method Detail
-
getRoot
public Node getRoot()
- Returns:
- the root node of the tree.
-
getItems
public IItemCollection getItems()
- Returns:
- the source data set.
-
getAttribute
public IAttribute<IQuantity> getAttribute()
-
-