Android Developers Develop API reference Stay organized with collections Save and categorize content based on your preferences. Counter Artifact: androidx.tracing:tracing View Source Added in 2.0.0-alpha07 Kotlin |Java Common/AllAndroid/JVM Cmn interface Counter Handle for emitting Long or Counter counter event updates into a trace. This allows you to monitor numeric values that change over time in a trace, such as the number of events in a queue, or memory usage. Summary Public functions String name() Cmn Unit setValue(value: Double) Emits a Double value into the trace for the provided name. Cmn Unit setValue(value: Long) Emits a Long value into the trace for the provided name. Cmn Public functions name Cmn Added in 2.0.0-alpha07 fun name(): String setValue Cmn Added in 2.0.0-alpha07 fun setValue(value: Double): Unit Emits a Double value into the trace for the provided name. setValue Cmn Added in 2.0.0-alpha07 fun setValue(value: Long): Unit Emits a Long value into the trace for the provided name.