sealed class Metric

Known direct subclasses
ArtMetric

Captures metrics about ART method/class compilation and initialization.

FrameTimingGfxInfoMetric

Version of FrameTimingMetric based on 'dumpsys gfxinfo' instead of trace data.

FrameTimingMetric

Metric which captures timing information from frames produced by a benchmark, such as a scrolling or animation benchmark.

PowerMetric

Captures the change of power, energy or battery charge metrics over time for specified duration.

StartupTimingMetric

Captures app startup timing metrics.

TraceMetric

Metric which captures results from a Perfetto trace with custom PerfettoTraceProcessor queries.

TraceSectionMetric

Captures the time taken by named trace section - a named begin / end pair matching the provided sectionName.

Known indirect subclasses
MemoryCountersMetric

Captures the number of page faults over time for a target package name.

MemoryUsageMetric

Metric for tracking the memory usage of the target application.


Metric interface.

Summary

Nested types

Contextual information about the environment where metrics are captured, such as apiLevel and targetPackageName.

Represents a Metric's measurement of a single iteration.

Protected constructors

Protected constructors

Metric

protected Metric()