From 159cc8c594de8520f928552507eabce9b05e0446 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Thu, 16 May 2024 12:54:27 -0700 Subject: [PATCH] The lunch benchmarks don't have targets, so don't fail. Bug: 316189534 Test: format_benchmarks Change-Id: I5b37a99624801a9c8d5f43ded788c8f0721b45f8 --- tools/perf/format_benchmarks | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/perf/format_benchmarks b/tools/perf/format_benchmarks index 162c5770a9..26493b2b75 100755 --- a/tools/perf/format_benchmarks +++ b/tools/perf/format_benchmarks @@ -188,7 +188,10 @@ def main(argv): for key, column in summary["columns"]: for id, cell in column: duration_ns = statistics.median([b["duration_ns"] for b in cell]) - table.SetFixedCol(cell[0]["title"], [" ".join(cell[0]["modules"])]) + modules = cell[0]["modules"] + if not modules: + modules = ["---"] + table.SetFixedCol(cell[0]["title"], [" ".join(modules)]) table.Set(tuple([summary["date"].strftime("%Y-%m-%d"), summary["branch"], summary["tag"]]