public class CallTree extends Object implements LogMessageSource<Split>
Constructor and Description |
---|
CallTree(Long logThreshold)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getLogMessage(Split context)
Transforms this call tree into a loggable message.
|
Long |
getLogThreshold() |
CallTreeNode |
getRootNode() |
void |
onRootStopwatchStart(CallTreeNode rootNode,
Split split)
When stopwatch is started, and the root tree node is pushed into
the call stack, this method is called.
|
protected void |
onRootStopwatchStop(CallTreeNode callTreeNode,
Split split)
When stopwatch is stopped, and root tree node is popped from
call stack, this method is called.
|
CallTreeNode |
onStopwatchStart(Split split)
When stopwatch is started, a new tree node is added to the parent
tree node and pushed on the call stack.
|
CallTreeNode |
onStopwatchStop(Split split)
When stopwatch is stopped, the the split is added to current tree node
and this tree node is popped from call stack.
|
public CallTreeNode onStopwatchStart(Split split)
public CallTreeNode onStopwatchStop(Split split)
public void onRootStopwatchStart(CallTreeNode rootNode, Split split)
rootNode
- Root tree nodesplit
- Root splitprotected void onRootStopwatchStop(CallTreeNode callTreeNode, Split split)
public String getLogMessage(Split context)
getLogMessage
in interface LogMessageSource<Split>
context
- Contextpublic Long getLogThreshold()
public CallTreeNode getRootNode()
Copyright © 2019. All rights reserved.