PerfettoGenericPostProcessor
public class PerfettoGenericPostProcessor
extends BasePostProcessor
java.lang.Obiekt | ||
↳ | com.android.tradefed.postprocessor.BasePostProcessor | |
↳ | com.android.tradefed.postprocessor.PerfettoGenericPostProcessor |
Postprocesor, który przetwarza tekstowy/binarny metryczny perfetto plik proto na pary klucz-wartość poprzez rekurencyjne rozszerzanie proto komunikatów i pól o wartości łańcuchowe, aż do napotkania pola z wartością liczbową. Traktuje enum i boolean jako wartości łańcuchowe podczas konstruowania kluczy.
Opcjonalnie obsługuje indeksowanie pól listy, gdy podczas konstruowania kluczy występują duplikaty. Na przykład
"perfetto-indexed-list-field" - perfetto.protos.AndroidStartupMetric.Startup
"pole-klucza-prefiksu perfetto" - perfetto.protos.ProcessRenderInfo.nazwa_procesu
android_startup-startup#1-package_name-com.calculator-to_first_frame-dur_ns: 300620342 android_startup-startup#2-package_name-com.nexuslauncher-to_first_frame-dur_ns: 49257713 android_startup-startup#3-package_name-com.calculator-to_first_frame-dur_ns: 261382005
Streszczenie
Konstruktory publiczne | |
---|---|
PerfettoGenericPostProcessor () |
Metody publiczne | |
---|---|
processRunMetricsAndLogs ( rawMetrics, runLogs) processRunMetricsAndLogs ( rawMetrics, runLogs) processRunMetricsAndLogs ( rawMetrics, runLogs) Zaimplementuj tę metodę, aby wygenerować zestaw nowych metryk z istniejących metryk i dzienników. | |
processTestMetricsAndLogs ( TestDescription testDescription, testMetrics, testLogs) processTestMetricsAndLogs ( TestDescription testDescription, testMetrics, testLogs) processTestMetricsAndLogs ( TestDescription testDescription, testMetrics, testLogs) Zaimplementuj tę metodę, aby publikować metryki i dzienniki procesu z każdego testu. |
Metody chronione | |
---|---|
MetricMeasurement.DataType | getMetricType () Ustaw typ pomiaru na Metryka RAW. |
Konstruktory publiczne
PerfettoGenericPostProcessor
public PerfettoGenericPostProcessor ()
Metody publiczne
processRunMetricsAndLogs
publicprocessRunMetricsAndLogs ( rawMetrics, runLogs)
Zaimplementuj tę metodę, aby wygenerować zestaw nowych metryk z istniejących metryk i dzienników. Zwracane powinny być tylko nowo wygenerowane metryki z unikalną nazwą klucza (kolizja z istniejącymi kluczami nie jest dozwolona).
Parametry | |
---|---|
rawMetrics | |
runLogs |
Zwroty | |
---|---|
Zestaw nowo wygenerowanych metryk z metryk uruchomienia. |
processTestMetricsAndLogs
publicprocessTestMetricsAndLogs (TestDescription testDescription, testMetrics, testLogs)
Zaimplementuj tę metodę, aby publikować metryki i dzienniki procesu z każdego testu. Zwracane powinny być tylko nowo wygenerowane metryki z unikalną nazwą klucza (kolizja z istniejącymi kluczami nie jest dozwolona).
Parametry | |
---|---|
testDescription | TestDescription : Obiekt TestDescription opisujący test. |
testMetrics | |
testLogs |
Zwroty | |
---|---|
Zestaw nowo wygenerowanych metryk z metryk testowych. |
Metody chronione
getMetricType
protected MetricMeasurement.DataType getMetricType ()
Ustaw typ pomiaru na Metryka RAW.
Zwroty | |
---|---|
MetricMeasurement.DataType |