Mirko Bonadei | 054ea47 | 2022-07-21 07:52:32 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2022 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | #include "test/test_flags.h" |
| 12 | |
| 13 | #include <string> |
| 14 | #include <vector> |
| 15 | |
| 16 | #include "absl/flags/flag.h" |
| 17 | |
Mirko Bonadei | 054ea47 | 2022-07-21 07:52:32 | [diff] [blame] | 18 | ABSL_FLAG(std::vector<std::string>, |
| 19 | plot, |
| 20 | {}, |
| 21 | "List of metrics that should be exported for plotting (if they are " |
| 22 | "available). Example: psnr,ssim,encode_time. To plot all available " |
| 23 | " metrics pass 'all' as flag value"); |
| 24 | |
| 25 | ABSL_FLAG( |
| 26 | std::string, |
| 27 | isolated_script_test_perf_output, |
| 28 | "", |
| 29 | "Path where the perf results should be stored in proto format described " |
| 30 | "described by histogram.proto in " |
| 31 | "https://chromium.googlesource.com/catapult/."); |
Artem Titov | 9a92b8a | 2022-09-30 12:20:44 | [diff] [blame] | 32 | |
| 33 | ABSL_FLAG(std::string, |
| 34 | webrtc_test_metrics_output_path, |
| 35 | "", |
| 36 | "Path where the test perf metrics should be stored using " |
| 37 | "api/test/metrics/metric.proto proto format. File will contain " |
Mirko Bonadei | 79c21b1 | 2022-12-05 20:05:58 | [diff] [blame] | 38 | "MetricsSet as a root proto. On iOS, this MUST be a file name " |
| 39 | "and the file will be stored under NSDocumentDirectory."); |
Mirko Bonadei | b4f87e5 | 2022-11-29 14:57:48 | [diff] [blame] | 40 | |
| 41 | ABSL_FLAG(bool, |
| 42 | export_perf_results_new_api, |
| 43 | false, |
| 44 | "Tells to initialize new API for exporting performance metrics"); |
Danil Chapovalov | f2443a7 | 2023-10-09 14:39:40 | [diff] [blame] | 45 | |
| 46 | ABSL_FLAG(bool, |
| 47 | webrtc_quick_perf_test, |
| 48 | false, |
| 49 | "Runs webrtc perfomance tests in quick mode."); |