|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.debug.internal.ProfilerSection.Node
public static class ProfilerSection.Node
A hierarchical representation of the time spent running a named block of code.
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 Summary | |
|---|---|
ProfilerSection.Node(java.lang.String name)
Create a new node with the given name. |
|
| Method Summary | |
|---|---|
ProfilerSection.Node |
enterChild(java.lang.String name,
double timestamp)
Creates a new child node or retrieves and existing child and updates its total time and hit count. |
java.util.Collection<ProfilerSection.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 |
java.lang.String |
getName()
Gets the name of the node |
double |
getOwnTime()
Gets the total time spent in this node, excluding time spent in sub nodes |
java.lang.String |
getStringRepresentation(java.lang.String prefix)
|
double |
getTimeSpent()
Gets the total time spent in this node, including time spent in sub nodes |
void |
leave(double timestamp)
|
void |
sumUpTotals(java.util.Map<java.lang.String,ProfilerSection.Node> totals)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProfilerSection.Node(java.lang.String name)
name - | Method Detail |
|---|
public java.lang.String getName()
public ProfilerSection.Node enterChild(java.lang.String name,
double timestamp)
name - the name of the childtimestamp - the timestamp for when the node is entered
public double getTimeSpent()
public double getMinTimeSpent()
public double getMaxTimeSpent()
public int getCount()
public double getOwnTime()
public java.util.Collection<ProfilerSection.Node> getChildren()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getStringRepresentation(java.lang.String prefix)
public void sumUpTotals(java.util.Map<java.lang.String,ProfilerSection.Node> totals)
public void leave(double timestamp)
timestamp -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||