diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /tools/tryselect/selectors/perf.py | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tools/tryselect/selectors/perf.py')
-rw-r--r-- | tools/tryselect/selectors/perf.py | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/tools/tryselect/selectors/perf.py b/tools/tryselect/selectors/perf.py index 3c59e5949c..261905d5a3 100644 --- a/tools/tryselect/selectors/perf.py +++ b/tools/tryselect/selectors/perf.py @@ -336,6 +336,15 @@ class PerfParser(CompareParser): "help": "Use PerfCompare Beta instead of CompareView.", }, ], + [ + ["--non-pgo"], + { + "action": "store_true", + "default": False, + "help": "Use opt/non-pgo builds instead of shippable/pgo builds. " + "Setting this flag will result in faster try runs.", + }, + ], ] def get_tasks(base_cmd, queries, query_arg=None, candidate_tasks=None): @@ -715,7 +724,7 @@ class PerfParser(CompareParser): PerfParser.variants[variant.value]["query"] ) - def _build_categories(category, category_info, category_matrix): + def _build_categories(category, category_info, category_matrix, **kwargs): """Builds the categories to display.""" categories = {} @@ -745,6 +754,16 @@ class PerfParser(CompareParser): for suite in category_info["suites"] } + if kwargs.get("non_pgo"): + for key, query_list in platform_queries.items(): + updated_query_list = [] + for query in query_list: + updated_query = query.replace( + "'shippable", "!shippable !nightlyasrelease" + ) + updated_query_list.append(updated_query) + platform_queries[key] = updated_query_list + platform_category_name = f"{category} {platform.value}" platform_category_info = { "queries": platform_queries, @@ -931,7 +950,7 @@ class PerfParser(CompareParser): for category, category_matrix in category_decision_matrix.items(): categories.update( PerfParser._build_categories( - category, PerfParser.categories[category], category_matrix + category, PerfParser.categories[category], category_matrix, **kwargs ) ) |