FrameMetricsAggregator

public class FrameMetricsAggregator


This class can be used to record and return data about per-frame durations. It returns those results in an array per metric type, with the results indicating how many samples were recorded for each duration value. The details of the durations data are described in getMetrics.

For more information on the various metrics tracked, see the documentation for the FrameMetrics API added in API 24 as well as the GPU Profiling guide.

Summary

Constants

static final int

A flag indicating that the metrics should track the animation duration.

static final int

The index in the metrics array where the data for ANIMATION_DURATION is stored.

static final int

A flag indicating that the metrics should track the command duration.

static final int

The index in the metrics array where the data for SYNC_DURATION is stored.

static final int

A flag indicating that the metrics should track the delay duration.

static final int

The index in the metrics array where the data for DELAY_DURATION is stored.

static final int

A flag indicating that the metrics should track the draw duration.

static final int

The index in the metrics array where the data for DRAW_DURATION is stored.

static final int

A flag indicating that the metrics should track all durations.

static final int

A flag indicating that the metrics should track the input duration.

static final int

The index in the metrics array where the data for INPUT_DURATION is stored.

static final int

A flag indicating that the metrics should track the layout duration.

static final int

The index in the metrics array where the data for LAYOUT_MEASURE_DURATION is stored.

static final int

A flag indicating that the metrics should track the swap duration.

static final int

The index in the metrics array where the data for COMMAND_DURATION is stored.

static final int

A flag indicating that the metrics should track the sync duration.

static final int

The index in the metrics array where the data for SYNC_DURATION is stored.

static final int