Skip to content

Commit 9bd0985

Browse files
authored
Disply empty seconds as empty lines in perf test output (#7833)
1 parent 8e07d12 commit 9bd0985

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/infra/basicperf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,12 @@ def color_legend(names, *color_groups):
693693
)
694694
all_seconds.update(ce["second"].to_list())
695695

696-
seconds = sorted(all_seconds)
696+
# Use a contiguous range so that idle seconds appear as
697+
# empty bars rather than being skipped entirely.
698+
if all_seconds:
699+
seconds = list(range(min(all_seconds), max(all_seconds) + 1))
700+
else:
701+
seconds = []
697702

698703
# With many clients, bin them into groups so each group gets
699704
# enough bar width to be visible. Target ~chart_width/4 groups max.

0 commit comments

Comments
 (0)