public class TimeData extends Object
Modifier and Type | Field and Description |
---|---|
long |
count
Number of records processed.
|
long |
elapsed
Elapsed time in milliseconds.
|
long |
freeMem
Free memory at the end of measurement interval.
|
String |
name
Name of the data point - usually one of a data series with the same name
|
long |
totalMem
Total memory at the end of measurement interval.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
clone() |
static String |
getLabels()
Get a short legend for toString() output.
|
double |
getRate()
Get rate of processing, defined as number of processed records per second.
|
void |
recordMemUsage()
Record memory usage.
|
void |
reset()
Reset counters.
|
void |
start()
Start counting elapsed time.
|
void |
stop()
Stop counting elapsed time.
|
String |
toString() |
String |
toString(boolean withMem)
Return a tab-separated string containing this data.
|
public String name
public long count
public long elapsed
public long freeMem
public long totalMem
public TimeData()
public TimeData(String name)
public void start()
public void stop()
public void recordMemUsage()
public void reset()
public double getRate()
public static String getLabels()
public String toString(boolean withMem)
withMem
- if true, append also memory informationCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.