public class HealthStatsWriter extends Object
HealthStats
object.
There is an attempt to keep this class as low overhead as possible, for
example storing an int[] and a long[] instead of a TimerStat[].Constructor and Description |
---|
HealthStatsWriter(HealthKeys.Constants constants)
Construct a HealthStatsWriter object with the given constants.
|
Modifier and Type | Method and Description |
---|---|
void |
addMeasurement(int measurementId,
long value)
Add a measurement for the given key.
|
void |
addMeasurements(int key,
String name,
long value)
Add a measurement for the given key and string name.
|
void |
addStats(int key,
String name,
HealthStatsWriter value)
Add a recursive HealthStats object for the given key and string name.
|
void |
addTimer(int timerId,
int count,
long time)
Add a timer for the given key.
|
void |
addTimers(int key,
String name,
TimerStat value)
Add a TimerStat for the given key and string name.
|
void |
flattenToParcel(Parcel out)
Flattens the data in this HealthStatsWriter to the Parcel format
that can be unparceled into a HealthStat.
|
public HealthStatsWriter(HealthKeys.Constants constants)
public void addTimer(int timerId, int count, long time)
public void addMeasurement(int measurementId, long value)
public void addStats(int key, String name, HealthStatsWriter value)
public void addTimers(int key, String name, TimerStat value)
public void addMeasurements(int key, String name, long value)
public void flattenToParcel(Parcel out)