| |
|
| java.lang.Object org.apache.lucene.benchmark.stats.TimeData
TimeData | public class TimeData (Code) | | This class holds a data point measuring speed of processing.
author: Andrzej Bialecki <ab@getopt.org> |
Field Summary | |
public long | count Number of records processed. | public long | elapsed Elapsed time in milliseconds. | public long | freeMem Free memory at the end of measurement interval. | public String | name | public long | totalMem Total memory at the end of measurement interval. |
Method Summary | |
protected Object | clone() | public static String | getLabels() Get a short legend for toString() output. | public double | getRate() Get rate of processing, defined as number of processed records per second. | public void | recordMemUsage() Record memory usage. | public void | reset() Reset counters. | public void | start() Start counting elapsed time. | public void | stop() Stop counting elapsed time. | public String | toString() | public String | toString(boolean withMem) Return a tab-seprated string containing this data. |
count | public long count(Code) | | Number of records processed.
|
elapsed | public long elapsed(Code) | | Elapsed time in milliseconds.
|
freeMem | public long freeMem(Code) | | Free memory at the end of measurement interval.
|
name | public String name(Code) | | Name of the data point - usually one of a data series with the same name
|
totalMem | public long totalMem(Code) | | Total memory at the end of measurement interval.
|
TimeData | public TimeData()(Code) | | |
getLabels | public static String getLabels()(Code) | | Get a short legend for toString() output.
|
getRate | public double getRate()(Code) | | Get rate of processing, defined as number of processed records per second.
|
recordMemUsage | public void recordMemUsage()(Code) | | Record memory usage.
|
reset | public void reset()(Code) | | Reset counters.
|
start | public void start()(Code) | | Start counting elapsed time.
|
stop | public void stop()(Code) | | Stop counting elapsed time.
|
toString | public String toString(boolean withMem)(Code) | | Return a tab-seprated string containing this data.
Parameters: withMem - if true, append also memory information The String |
|
|
|