|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.benchmark.stats.TimeData
public class TimeData
This class holds a data point measuring speed of processing.
Field Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
TimeData()
|
|
TimeData(String name)
|
Method Summary | |
---|---|
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-seprated string containing this data. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public String name
public long count
public long elapsed
public long freeMem
public long totalMem
Constructor Detail |
---|
public TimeData()
public TimeData(String name)
Method Detail |
---|
public void start()
public void stop()
public void recordMemUsage()
public void reset()
protected Object clone()
clone
in class Object
public double getRate()
public static String getLabels()
public String toString()
toString
in class Object
public String toString(boolean withMem)
withMem
- if true, append also memory information
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |