Class CmsThreadStatsTreeProfilingHandler.Node

java.lang.Object
org.opencms.db.timing.CmsThreadStatsTreeProfilingHandler.Node
Enclosing class:
CmsThreadStatsTreeProfilingHandler

The tree node.

  • Constructor Details

    • Node

      public Node(Object key)
      Creates a new node.

      Parameters:
      key - the key for this node
  • Method Details

    • dumpTree

      public static org.dom4j.Document dumpTree(CmsThreadStatsTreeProfilingHandler.Node node)
      Computes the cumulative stats for a tree and dumps it to an XML document.

      Parameters:
      node - the root node
      Returns:
      the resulting XML document
    • addCall

      public void addCall(long nanos)
      Updates the count / nanos for this node.

      Parameters:
      nanos - the nanoseconds to add
    • addOrGetChild

      Gets the child for a given key, or adds it if it doesn't exist yet.

      Parameters:
      key - the key
      Returns:
      the child
    • addOrGetDescendant

      Gets the descendant for a given path, or adds it if it doesn't exist yet.

      Parameters:
      path - the path
      Returns:
      the descendant
    • computeCumulativeData

      public void computeCumulativeData()
      Computes the cumulative driver call count and nanos.

    • dump

      public void dump(org.dom4j.Element parent)
      Computes XML structure for this node and its descendants and appends it to a given element.

      Parameters:
      parent - the parent element
    • getKey

      public Object getKey()
      Gets the key for the node.

      Returns:
      tbe key