Skip to content

Commit

Permalink
toplev: Print groups on new lines with --perf
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Apr 3, 2024
1 parent 4ec74a9 commit 739ee2a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion toplev.py
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,10 @@ def print_perf(r):
l = [x.replace(";", "\\;") for x in l]
i = l.index('--log-fd')
del l[i:i+2]
print(" ".join(l))
s = " ".join(l)
if len(l) > 2:
s = s.replace("},", "},\n")
print(s)
sys.stdout.flush()

def gen_script(r):
Expand Down

0 comments on commit 739ee2a

Please sign in to comment.