Class CmsThreadStatsTreeProfilingHandler.Node

    • Constructor Detail

      • Node

        public Node​(java.lang.Object key)
        Creates a new node.

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

      • 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
      • 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 java.lang.Object getKey()
        Gets the key for the node.

        Returns:
        tbe key