All Packages Class Hierarchy This Package Previous Next Index
Class com.andthehorseyourodeinon.utils.Metrics
java.lang.Object
|
+----com.andthehorseyourodeinon.utils.Metrics
- public class Metrics
- extends Object
The Metrics class allows you to have a collection of named
RunMetrics, accessible via a single object. It will also generate a
global report on the states of all RunMetrics.
- Version:
- $Id: Metrics.java,v 1.1 2000/05/16 22:45:10 samuelg Exp $
- See Also:
- RunMetrics
-
Metrics()
-
-
addMetric(String)
- Add a RunMetric to the collection
-
showAllMetrics()
- generate an HTML table of all RunMetric's reports.
-
showMetrics(String)
- Get an HTML-formatted report from a named RunMetric
-
start(String)
- Starts a named RunMetric's timing cycle
-
stop(String)
- Stops a named RunMetric's timing cycle
-
systemMetrics()
- Generate an HTML table describing global system metrics
Metrics
public Metrics()
addMetric
public void addMetric(String metricName)
- Add a RunMetric to the collection
start
public synchronized void start(String metricName)
- Starts a named RunMetric's timing cycle
stop
public synchronized void stop(String metricName)
- Stops a named RunMetric's timing cycle
showAllMetrics
public String showAllMetrics()
- generate an HTML table of all RunMetric's reports.
showMetrics
public String showMetrics(String metricName)
- Get an HTML-formatted report from a named RunMetric
systemMetrics
public String systemMetrics()
- Generate an HTML table describing global system metrics
All Packages Class Hierarchy This Package Previous Next Index