public static class Profiler.Node extends Object
Warning! This class is most likely to change in the future and is therefore defined in this class in an internal package instead of Profiler where it might seem more logical.
Constructor and Description |
---|
Node(String name)
Create a new node with the given name.
|
Modifier and Type | Method and Description |
---|---|
Profiler.Node |
enterChild(String name,
double timestamp)
Creates a new child node or retrieves and existing child and updates
its total time and hit count.
|
Collection<Profiler.Node> |
getChildren()
Gets the child nodes of this node
|
int |
getCount()
Gets the number of times this node has been entered
|
double |
getMaxTimeSpent()
Gets the maximum time spent for one invocation of this node,
including time spent in sub nodes
|
double |
getMinTimeSpent()
Gets the minimum time spent for one invocation of this node,
including time spent in sub nodes
|
String |
getName()
Gets the name of the node
|
double |
getOwnTime()
Gets the total time spent in this node, excluding time spent in sub
nodes
|
String |
getStringRepresentation(String prefix) |
double |
getTimeSpent()
Gets the total time spent in this node, including time spent in sub
nodes
|
void |
leave(double timestamp) |
void |
sumUpTotals(Map<String,Profiler.Node> totals) |
String |
toString() |
public Node(String name)
name
- public String getName()
public Profiler.Node enterChild(String name, double timestamp)
name
- the name of the childtimestamp
- the timestamp for when the node is enteredpublic double getTimeSpent()
public double getMinTimeSpent()
public double getMaxTimeSpent()
public int getCount()
public double getOwnTime()
public Collection<Profiler.Node> getChildren()
public void sumUpTotals(Map<String,Profiler.Node> totals)
public void leave(double timestamp)
timestamp
- Copyright © 2019 Vaadin Ltd. All rights reserved.