GeminiDebuggingPostProcessor

public class GeminiDebuggingPostProcessor
extends BasePostProcessor

java.lang.Object
   ↳ com.android.tradefed.postprocessor.BasePostProcessor
     ↳ com.android.tradefed.postprocessor.GeminiDebuggingPostProcessor


Post processor creating prompt queries for debugging errors.

Summary

Public constructors

GeminiDebuggingPostProcessor()

Public methods

Map<String, MetricMeasurement.Metric.Builder> processRunMetricsAndLogs(HashMap<String, MetricMeasurement.Metric> rawMetrics, Map<String, LogFile> runLogs)

Implement this method in order to generate a set of new metrics from the existing metrics and logs.

Map<String, MetricMeasurement.Metric.Builder> processTestMetricsAndLogs(TestDescription testDescription, HashMap<String, MetricMeasurement.Metric> testMetrics, Map<String, LogFile> testLogs)

Implement this method to post process metrics and logs from each test.

Public constructors

GeminiDebuggingPostProcessor

public GeminiDebuggingPostProcessor ()

Public methods

processRunMetricsAndLogs

public Map<String, MetricMeasurement.Metric.Builder> processRunMetricsAndLogs (HashMap<String, MetricMeasurement.Metric> rawMetrics, 
                Map<String, LogFile> runLogs)

Implement this method in order to generate a set of new metrics from the existing metrics and logs. Only the newly generated metrics should be returned, and with unique key name (no collision with existing keys are allowed).

Parameters
rawMetrics HashMap: The set of raw metrics available for the run.

runLogs Map: The set of log files for the test run.

Returns
Map<String, MetricMeasurement.Metric.Builder> The set of newly generated metrics from the run metrics.

processTestMetricsAndLogs

public Map<String, MetricMeasurement.Metric.Builder> processTestMetricsAndLogs (TestDescription testDescription, 
                HashMap<String, MetricMeasurement.Metric> testMetrics, 
                Map<String, LogFile> testLogs)

Implement this method to post process metrics and logs from each test. Only the newly generated metrics should be returned, and with unique key name (no collision with existing keys are allowed).

Parameters
testDescription TestDescription: The TestDescription object describing the test.

testMetrics HashMap: The set of metrics from the test.

testLogs Map: The set of files logged during the test.

Returns
Map<String, MetricMeasurement.Metric.Builder> The set of newly generated metrics from the test metrics.