Class RTimerTree

java.lang.Object
org.apache.solr.util.RTimer
org.apache.solr.util.RTimerTree

public class RTimerTree extends RTimer
A recursive timer.

RTimerTree's are started automatically when instantiated; sub-timers are also started automatically when created.

  • Field Details

    • children

      protected org.apache.solr.common.util.SimpleOrderedMap<RTimerTree> children
  • Constructor Details

    • RTimerTree

      public RTimerTree()
  • Method Details

    • stop

      public double stop()
      Recursively stop timer and sub timers
      Overrides:
      stop in class RTimer
    • newTimer

      protected RTimerTree newTimer()
    • sub

      public RTimerTree sub(String desc)
      Returns a subtimer given its name. If the subtimer did not exist a new subtimer will be started and returned, otherwise an existing subtimer will be returned as-is.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • asNamedList

      public org.apache.solr.common.util.NamedList<Object> asNamedList()
    • getChildren

      public org.apache.solr.common.util.SimpleOrderedMap<RTimerTree> getChildren()
      Manipulating this map may have undefined results.