org.apache.lucene.benchmark.stats
public class TimeData extends Object
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. |
Parameters: withMem if true, append also memory information
Returns: The String