MetricUtil

public class MetricUtil
extends Object

java.lang.Object
com.android.tradefed.util.statsd.MetricUtil


Hilfsklasse zum Abrufen von Metriken aus gepushten statsd-Konfigurationen.

Zusammenfassung

Öffentliche Konstrukteure

MetricUtil ()

Öffentliche Methoden

static getEventMetricData ( ITestDevice device, long configId)

Rufen Sie statsd-Ereignismetrikdaten vom Gerät mithilfe der statsd-Konfigurations-ID ab.

static InputStreamSource getReportByteStream ( ITestDevice device, long configId)

Rufen Sie den Statsd-Bericht als Byte-Stream-Quelle ab

static StatsLog.StatsdStatsReport getStatsdMetadata ( ITestDevice device)

Rufen Sie statsd-Metadaten ab, die auch Systemserver-Absturzinformationen enthalten.

Öffentliche Konstrukteure

MetricUtil

public MetricUtil ()

Öffentliche Methoden

getEventMetricData

public static  getEventMetricData (ITestDevice device, 
                long configId)

Rufen Sie statsd-Ereignismetrikdaten vom Gerät mithilfe der statsd-Konfigurations-ID ab.

Parameter
device ITestDevice

configId long

Kehrt zurück

Wirft
DeviceNotAvailableException

getReportByteStream

public static InputStreamSource getReportByteStream (ITestDevice device, 
                long configId)

Rufen Sie den Statsd-Bericht als Byte-Stream-Quelle ab

Parameter
device ITestDevice

configId long

Kehrt zurück
InputStreamSource

Wirft
DeviceNotAvailableException

getStatsdMetadaten

public static StatsLog.StatsdStatsReport getStatsdMetadata (ITestDevice device)

Rufen Sie statsd-Metadaten ab, die auch Systemserver-Absturzinformationen enthalten.

Parameter
device ITestDevice

Kehrt zurück
StatsLog.StatsdStatsReport

Wirft
DeviceNotAvailableException
InvalidProtocolBufferException