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
-
-
Field Summary
Fields Modifier and Type Field Description protected SimpleOrderedMap<RTimerTree>
children
-
Constructor Summary
Constructors Constructor Description RTimerTree()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamedList<Object>
asNamedList()
SimpleOrderedMap<RTimerTree>
getChildren()
Manipulating this map may have undefined results.protected RTimerTree
newTimer()
double
stop()
Recursively stop timer and sub timersRTimerTree
sub(String desc)
Returns a subtimer given its name.String
toString()
-
Methods inherited from class org.apache.solr.util.RTimer
getTime, newTimerImpl, pause, resume
-
-
-
-
Field Detail
-
children
protected 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.
-
getChildren
public SimpleOrderedMap<RTimerTree> getChildren()
Manipulating this map may have undefined results.
-
-