From 9a92b8a546b45929c7cc0ed5f11486472365d4ef Mon Sep 17 00:00:00 2001 From: Artem Titov Date: Fri, 30 Sep 2022 14:20:44 +0200 Subject: [PATCH] Add flag to export in new MetricSet proto format Bug: b/246095034 Change-Id: I7e879ab9d47267788793a65a75fba401bf9aa38a Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/277561 Reviewed-by: Mirko Bonadei Commit-Queue: Artem Titov Cr-Commit-Position: refs/heads/main@{#38259} --- test/test_flags.cc | 7 +++++++ test/test_flags.h | 1 + 2 files changed, 8 insertions(+) diff --git a/test/test_flags.cc b/test/test_flags.cc index 3f30aff39a..a0becc2ab7 100644 --- a/test/test_flags.cc +++ b/test/test_flags.cc @@ -36,3 +36,10 @@ ABSL_FLAG( "Path where the perf results should be stored in proto format described " "described by histogram.proto in " "https://chromium.googlesource.com/catapult/."); + +ABSL_FLAG(std::string, + webrtc_test_metrics_output_path, + "", + "Path where the test perf metrics should be stored using " + "api/test/metrics/metric.proto proto format. File will contain " + "MetricsSet as a root proto"); diff --git a/test/test_flags.h b/test/test_flags.h index 694b4540ce..6ca30b22f0 100644 --- a/test/test_flags.h +++ b/test/test_flags.h @@ -18,5 +18,6 @@ ABSL_DECLARE_FLAG(std::string, force_fieldtrials); ABSL_DECLARE_FLAG(std::vector, plot); ABSL_DECLARE_FLAG(std::string, isolated_script_test_perf_output); +ABSL_DECLARE_FLAG(std::string, webrtc_test_metrics_output_path); #endif // TEST_TEST_FLAGS_H_