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-rc01 Kotlin |Java Android/JVM android 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() android Unit setValue(value: Double) Emits a Double value into the trace for the provided name. android Unit setValue(value: Long) Emits a Long value into the trace for the provided name. android Public functions name android Added in 2.0.0-rc01 fun name(): String setValue android Added in 2.0.0-rc01 fun setValue(value: Double): Unit Emits a Double value into the trace for the provided name. setValue android Added in 2.0.0-rc01 fun setValue(value: Long): Unit Emits a Long value into the trace for the provided name.