Package org.apache.solr.util
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.util.RTimer
RTimer.TimerImpl
-
-
Constructor Summary
Constructors Constructor Description RTimerTree()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.solr.common.util.NamedList<Object>asNamedList()org.apache.solr.common.util.SimpleOrderedMap<RTimerTree>getChildren()Manipulating this map may have undefined results.protected RTimerTreenewTimer()doublestop()Recursively stop timer and sub timersRTimerTreesub(String desc)Returns a subtimer given its name.StringtoString()-
Methods inherited from class org.apache.solr.util.RTimer
getTime, newTimerImpl, pause, resume
-
-
-
-
Field Detail
-
children
protected org.apache.solr.common.util.SimpleOrderedMap<RTimerTree> children
-
-
Method Detail
-
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.
-
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.
-
-