public class StatisticsStub extends Statistics
Statistics.Record| Constructor and Description |
|---|
StatisticsStub() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin(java.lang.String groupId,
java.lang.Object key)
Starts measuring a time span until
Statistics.end(String, Object) is called with equal groupId
and key. |
void |
clear() |
void |
end(java.lang.String groupId,
java.lang.Object key) |
java.util.Set<java.lang.String> |
getGroupIds() |
java.util.List<Statistics.Record> |
getRecords(java.lang.String groupId) |
void |
record(java.lang.String groupId,
java.lang.Object key,
long value)
Records a single value (could be a time measured other than with
Statistics.begin(String, Object) and
Statistics.end(String, Object), but could also be any other quantity over which later aggregation may
be performed. |
asCSV, asCSVMapByGroupId, asSV, asSVMapByGroupId, averageAsCVS, averageAsSV, getAverage, getInstancepublic void begin(java.lang.String groupId,
java.lang.Object key)
StatisticsStatistics.end(String, Object) is called with equal groupId
and key. Averages can be computed later for different keys with equal groupId.begin in class Statisticspublic void end(java.lang.String groupId,
java.lang.Object key)
end in class Statisticspublic void record(java.lang.String groupId,
java.lang.Object key,
long value)
StatisticsStatistics.begin(String, Object) and
Statistics.end(String, Object), but could also be any other quantity over which later aggregation may
be performed.record in class Statisticspublic void clear()
clear in class Statisticspublic java.util.List<Statistics.Record> getRecords(java.lang.String groupId)
getRecords in class Statisticspublic java.util.Set<java.lang.String> getGroupIds()
getGroupIds in class Statistics