@ParametersAreNonnullByDefault public final class SampleNode extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SampleNode.InvocationCount |
static interface |
SampleNode.InvocationHandler |
Constructor and Description |
---|
SampleNode(int count,
Map<Method,SampleNode> subNodes) |
SampleNode(StackTraceElement[] stackTrace,
int from) |
Modifier and Type | Method and Description |
---|---|
void |
addSample(StackTraceElement[] stackTrace,
int from) |
static void |
addToSampleNode(SampleNode node,
StackTraceElement... stackTrace) |
static SampleNode |
createSampleNode(StackTraceElement... stackTrace) |
SampleNode |
filteredBy(com.google.common.base.Predicate<Method> predicate) |
void |
forEach(SampleNode.InvocationHandler handler,
Method from,
Method to,
Map<Method,Integer> ancestors) |
int |
getNrNodes() |
int |
getSampleCount() |
Map<Method,SampleNode> |
getSubNodes() |
int |
height() |
static Graph<Method,SampleNode.InvocationCount> |
toGraph(SampleNode rootNode) |
String |
toString() |
public SampleNode(StackTraceElement[] stackTrace, int from)
public SampleNode(int count, @Nullable Map<Method,SampleNode> subNodes)
public static SampleNode createSampleNode(StackTraceElement... stackTrace)
public static void addToSampleNode(SampleNode node, StackTraceElement... stackTrace)
public void addSample(StackTraceElement[] stackTrace, int from)
public int getSampleCount()
@Nullable public Map<Method,SampleNode> getSubNodes()
public int height()
public int getNrNodes()
@Nullable public SampleNode filteredBy(com.google.common.base.Predicate<Method> predicate)
public void forEach(SampleNode.InvocationHandler handler, Method from, Method to, Map<Method,Integer> ancestors)
public static Graph<Method,SampleNode.InvocationCount> toGraph(SampleNode rootNode)
Copyright © 2014. All rights reserved.