patterntesting.runtime.monitor
Class SimpleProfileMonitor

Package class diagram package SimpleProfileMonitor
java.lang.Object
  extended by patterntesting.runtime.monitor.AbstractProfileMonitor
      extended by patterntesting.runtime.monitor.SimpleProfileMonitor
All Implemented Interfaces:
Comparable<ProfileMonitor>, ProfileMonitor

public final class SimpleProfileMonitor
extends AbstractProfileMonitor

The Class SimpleProfileMonitor.

Since:
19.12.2008
Version:
$Revision: 1.10 $
Author:
oliver

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

SimpleProfileMonitor

public SimpleProfileMonitor()
Instantiates a new simple profile monitor.


SimpleProfileMonitor

public SimpleProfileMonitor(String rootLabel)
Instantiates a new simple profile monitor.

Parameters:
rootLabel - the root label

SimpleProfileMonitor

public SimpleProfileMonitor(Signature label,
                            SimpleProfileMonitor parent)
Instantiates a new simple profile monitor.

Parameters:
label - the label
parent - the parent

SimpleProfileMonitor

public SimpleProfileMonitor(String label,
                            SimpleProfileMonitor parent)
Instantiates a new simple profile monitor.

Parameters:
label - the label
parent - the parent
Method Detail

reset

public void reset()
Reset.

See Also:
ProfileMonitor.reset()

addChild

protected void addChild(SimpleProfileMonitor child)
Adds the child.

Parameters:
child - the child

addChildren

public void addChildren(List<String> labels)
Adds the children.

Parameters:
labels - the labels

addChild

public void addChild(String lbl)
Adds the child.

Parameters:
lbl - the label

getMonitors

public ProfileMonitor[] getMonitors()
Gets the monitors.

Returns:
the monitors
See Also:
ProfileMonitor.getMonitors()

getMonitor

public SimpleProfileMonitor getMonitor(Signature sig)
We use now the signature without the return value. That's enough.

Parameters:
sig - the sig
Returns:
the monitor for sig

getMonitor

public SimpleProfileMonitor getMonitor(String lbl)
Gets the monitor.

Parameters:
lbl - the label as String
Returns:
the monitor
Since:
1.4.2

start

public void start()
Start.

See Also:
ProfileMonitor.start()

stop

public void stop()
Stop.

See Also:
ProfileMonitor.stop()

add

public void add(double value)
Adds the.

Parameters:
value - the measured time
See Also:
ProfileMonitor.add(double)

getTotal

public double getTotal()
Gets the total.

Returns:
the total
See Also:
ProfileMonitor.getTotal()

getLastValue

public double getLastValue()
Gets the last value.

Returns:
the last value
See Also:
ProfileMonitor.getLastValue()

getMax

public double getMax()
Gets the max.

Returns:
the max
See Also:
ProfileMonitor.getMax()

getMin

public double getMin()
Gets the min.

Returns:
the min
See Also:
ProfileMonitor.getMin()

getHits

public int getHits()
Gets the hits.

Returns:
the hits
See Also:
ProfileMonitor.getHits()

getAvg

public double getAvg()
Gets the avg.

Returns:
the avg
See Also:
ProfileMonitor.getAvg()

getLabel

public String getLabel()
Gets the label.

Returns:
the label
See Also:
ProfileMonitor.getLabel()

toString

public String toString()
To string.

Overrides:
toString in class Object
Returns:
the string
See Also:
Object.toString()

toShortString

public String toShortString()
To short string.

Returns:
the string
See Also:
ProfileMonitor.toShortString()

toCsvHeadline

public String toCsvHeadline()
To csv headline.

Returns:
the string
See Also:
ProfileMonitor.toCsvHeadline()

toCsvString

public String toCsvString()
To csv string.

Returns:
the string
See Also:
ProfileMonitor.toCsvString()

getUnits

public String getUnits()
Gets the units.

Returns:
the units
See Also:
ProfileMonitor.getUnits()

getActive

public double getActive()
Gets the active.

Returns:
the active
See Also:
ProfileMonitor.getActive()

getAvgActive

public double getAvgActive()
Gets the avg active.

Returns:
the avg active
See Also:
ProfileMonitor.getAvgActive()

getFirstAccess

public Date getFirstAccess()
Gets the first access.

Returns:
the first access
See Also:
ProfileMonitor.getFirstAccess()

getLastAccess

public Date getLastAccess()
Gets the last access.

Returns:
the last access
See Also:
ProfileMonitor.getLastAccess()

getMaxActive

public double getMaxActive()
Gets the max active.

Returns:
the max active
See Also:
ProfileMonitor.getMaxActive()


Copyright © 2002–2014 PatternTesting Team. All rights reserved.