Interface ITraceCounter
interface ITraceCounter
Extends com.amazon.apmf.IStandard
ITraceCounter interface contains APIs that track time-varying
numerical data.
Use a ITraceCounterBuilder to set the parameters used by this
interface.
Methods
timestamp()
Sets the timestamp of the value for counter track defined by ITraceCounter.ITraceCounter*timestamp(u64timestamp,ClockTypeclock)
Parameters
timestamp
u64 — Required
Timestamp of tracepoint.
clock
ClockType — Required
ClockType enum used to set Perfetto clock type.
Returns
ITraceCounter*
ITraceCounter with set timestamp.
valueInt32()
Emit a counter value of type int32_t for counter track defined by ITraceCounter. set by ITraceCounterBuilder.ITraceCounter*valueInt32(i32value)
Parameters
value
i32 — Required
Value of counter.
Returns
ITraceCounter*
original ITraceCounter object
valueInt64()
Emit a counter value of type int64_t for counter track defined by ITraceCounter. set by ITraceCounterBuilder.ITraceCounter*valueInt64(i64value)
Parameters
value
i64 — Required
Value of counter.
Returns
ITraceCounter*
original ITraceCounter object
valueFloat()
Emit a counter value of type float for counter track defined by ITraceCounter. set by ITraceCounterBuilder.ITraceCounter*valueFloat(floatvalue)
Parameters
value
float — Required
Value of counter.
Returns
ITraceCounter*
original ITraceCounter object
valueDouble()
Emit a counter value of type double for counter track defined by ITraceCounter. set by ITraceCounterBuilder.ITraceCounter*valueDouble(doublevalue)
Parameters
value
double — Required
Value of counter.
Returns
ITraceCounter*
original ITraceCounter object
emit()
void emit()
Emit a counter with the passed value and timestamp defined by ITraceCounter
If a timestamp is not defined, the timestamp will default to now
Note, when a counter is emitted the timestamp will be reset

