NumericMetricsRecorder

public abstract class NumericMetricsRecorder
extends Object implements IMetricsRecorder

java.lang.Object
   ↳ com.android.tradefed.profiler.recorder.NumericMetricsRecorder
Known Direct Subclasses
TraceMetricsRecorder An IMetricsRecorder that records metrics taken from the /d/tracing directory. 


A IMetricsRecorder that aggregates metrics using some basic numeric functions. This class doesn't implement any methods of the IMetricsRecorder interface, it just provides (possibly stateful) numeric functions to its subclasses.

Summary

Public constructors

NumericMetricsRecorder()

Protected methods

BiFunction<Double, Double, Double> avg()

Provides an aggregator function which average values.

BiFunction<Double, Double, Double> count()

Provides an aggregator function which counts values.

BiFunction<Double, Double, Double> countpos()

Provides an aggregator function which counts positive values.

BiFunction<Double, Double, Double> sum()

Provides an aggregator function which sums values.

Public constructors

NumericMetricsRecorder

NumericMetricsRecorder ()

Protected methods

avg

BiFunction<Double, Double, Double> avg ()

Provides an aggregator function which average values.

Returns
BiFunction<Double, Double, Double> an average function

count

BiFunction<Double, Double, Double> count ()

Provides an aggregator function which counts values.

Returns
BiFunction<Double, Double, Double> a count function

countpos

BiFunction<Double, Double, Double> countpos ()

Provides an aggregator function which counts positive values.

Returns
BiFunction<Double, Double, Double> a countpos function

sum

BiFunction<Double, Double, Double> sum ()

Provides an aggregator function which sums values.

Returns
BiFunction<Double, Double, Double> a sum function