public static class CmsThreadStatsTreeProfilingHandler.Node extends java.lang.Object
Constructor and Description |
---|
Node(java.lang.Object key)
Creates a new node.
|
Modifier and Type | Method and Description |
---|---|
void |
addCall(long nanos)
Updates the count / nanos for this node.
|
CmsThreadStatsTreeProfilingHandler.Node |
addOrGetChild(java.lang.Object key)
Gets the child for a given key, or adds it if it doesn't exist yet.
|
CmsThreadStatsTreeProfilingHandler.Node |
addOrGetDescendant(java.util.List<?> path)
Gets the descendant for a given path, or adds it if it doesn't exist yet.
|
void |
computeCumulativeData()
Computes the cumulative driver call count and nanos.
|
void |
dump(org.dom4j.Element parent)
Computes XML structure for this node and its descendants and appends it to a given element.
|
static org.dom4j.Document |
dumpTree(CmsThreadStatsTreeProfilingHandler.Node node)
Computes the cumulative stats for a tree and dumps it to an XML document.
|
java.lang.Object |
getKey()
Gets the key for the node.
|
public Node(java.lang.Object key)
key
- the key for this nodepublic static org.dom4j.Document dumpTree(CmsThreadStatsTreeProfilingHandler.Node node)
node
- the root nodepublic void addCall(long nanos)
nanos
- the nanoseconds to addpublic CmsThreadStatsTreeProfilingHandler.Node addOrGetChild(java.lang.Object key)
key
- the keypublic CmsThreadStatsTreeProfilingHandler.Node addOrGetDescendant(java.util.List<?> path)
path
- the pathpublic void computeCumulativeData()
public void dump(org.dom4j.Element parent)
parent
- the parent elementpublic java.lang.Object getKey()