|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectpatterntesting.runtime.monitor.AbstractProfileMonitor
patterntesting.runtime.monitor.SimpleProfileMonitor
public final class SimpleProfileMonitor
The Class SimpleProfileMonitor.
| Constructor Summary | |
|---|---|
SimpleProfileMonitor()
Instantiates a new simple profile monitor. |
|
SimpleProfileMonitor(Signature label,
SimpleProfileMonitor parent)
Instantiates a new simple profile monitor. |
|
SimpleProfileMonitor(String rootLabel)
Instantiates a new simple profile monitor. |
|
SimpleProfileMonitor(String label,
SimpleProfileMonitor parent)
Instantiates a new simple profile monitor. |
|
| Method Summary | |
|---|---|
void |
add(double value)
Adds the. |
protected void |
addChild(SimpleProfileMonitor child)
Adds the child. |
void |
addChild(String lbl)
Adds the child. |
void |
addChildren(List<String> labels)
Adds the children. |
double |
getActive()
Gets the active. |
double |
getAvg()
Gets the avg. |
double |
getAvgActive()
Gets the avg active. |
Date |
getFirstAccess()
Gets the first access. |
int |
getHits()
Gets the hits. |
String |
getLabel()
Gets the label. |
Date |
getLastAccess()
Gets the last access. |
double |
getLastValue()
Gets the last value. |
double |
getMax()
Gets the max. |
double |
getMaxActive()
Gets the max active. |
double |
getMin()
Gets the min. |
SimpleProfileMonitor |
getMonitor(Signature sig)
We use now the signature without the return value. |
SimpleProfileMonitor |
getMonitor(String lbl)
Gets the monitor. |
ProfileMonitor[] |
getMonitors()
Gets the monitors. |
double |
getTotal()
Gets the total. |
String |
getUnits()
Gets the units. |
void |
reset()
Reset. |
void |
start()
Start. |
void |
stop()
Stop. |
String |
toCsvHeadline()
To csv headline. |
String |
toCsvString()
To csv string. |
String |
toShortString()
To short string. |
String |
toString()
To string. |
| Methods inherited from class patterntesting.runtime.monitor.AbstractProfileMonitor |
|---|
compareTo, equals, equals, getLastTime, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleProfileMonitor()
public SimpleProfileMonitor(String rootLabel)
rootLabel - the root label
public SimpleProfileMonitor(Signature label,
SimpleProfileMonitor parent)
label - the labelparent - the parent
public SimpleProfileMonitor(String label,
SimpleProfileMonitor parent)
label - the labelparent - the parent| Method Detail |
|---|
public void reset()
ProfileMonitor.reset()protected void addChild(SimpleProfileMonitor child)
child - the childpublic void addChildren(List<String> labels)
labels - the labelspublic void addChild(String lbl)
lbl - the labelpublic ProfileMonitor[] getMonitors()
ProfileMonitor.getMonitors()public SimpleProfileMonitor getMonitor(Signature sig)
sig - the sig
public SimpleProfileMonitor getMonitor(String lbl)
lbl - the label as String
public void start()
ProfileMonitor.start()public void stop()
ProfileMonitor.stop()public void add(double value)
value - the measured timeProfileMonitor.add(double)public double getTotal()
ProfileMonitor.getTotal()public double getLastValue()
ProfileMonitor.getLastValue()public double getMax()
ProfileMonitor.getMax()public double getMin()
ProfileMonitor.getMin()public int getHits()
ProfileMonitor.getHits()public double getAvg()
ProfileMonitor.getAvg()public String getLabel()
ProfileMonitor.getLabel()public String toString()
toString in class ObjectObject.toString()public String toShortString()
ProfileMonitor.toShortString()public String toCsvHeadline()
ProfileMonitor.toCsvHeadline()public String toCsvString()
ProfileMonitor.toCsvString()public String getUnits()
ProfileMonitor.getUnits()public double getActive()
ProfileMonitor.getActive()public double getAvgActive()
ProfileMonitor.getAvgActive()public Date getFirstAccess()
ProfileMonitor.getFirstAccess()public Date getLastAccess()
ProfileMonitor.getLastAccess()public double getMaxActive()
ProfileMonitor.getMaxActive()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||