public class RuntimeTrackerTree
extends Object
RuntimeTrackerTree
Object consists of RuntimeTracker
Objects,
providing methods to create a tree of runtime trackers for the runtime breakdown of a program.Constructor and Description |
---|
RuntimeTrackerTree(String rootName,
boolean verbose) |
Modifier and Type | Method and Description |
---|---|
RuntimeTracker |
createRuntimeTracker(String name,
String parent)
Creates a
RuntimeTracker instance with its name and its parent name. |
RuntimeTracker |
createStandAloneRuntimeTracker(String name) |
String |
getRootRuntimeTracker()
Gets the name of the root runtime tracker.
|
RuntimeTracker |
getRuntimeTracker(String name)
Gets a created
RuntimeTracker instance corresponding to a name. |
String |
toString() |
public RuntimeTracker createRuntimeTracker(String name, String parent)
RuntimeTracker
instance with its name and its parent name.
If a runtime tracker under the given name exists, returns it.
Otherwise, creates a new one and returns it.name
- Name of a runtime tracker.parent
- The parent runtime tracker name.public RuntimeTracker getRuntimeTracker(String name)
RuntimeTracker
instance corresponding to a name.name
- The name of the runtime tracker.RuntimeTracker
instance under the name.public RuntimeTracker createStandAloneRuntimeTracker(String name)
public String getRootRuntimeTracker()
public String toString()
toString
in class Object