scripts: Reverted -o/-O to include all by-fields by default

For the same reason we output all field fields by default: Because
machines can process more information than humans can.

Worst case, by fields can still be limited via explicit -b/--by flags.
This commit is contained in:
Christopher Haster
2025-03-12 18:40:52 -05:00
parent f3889d8932
commit 3a290c41ab
8 changed files with 39 additions and 23 deletions

View File

@@ -1492,8 +1492,10 @@ def report(paths, *,
or args.get('threshold')
or args.get('read_threshold')
or args.get('prog_threshold')
or args.get('erase_threshold')):
by = ['file', 'line']
or args.get('erase_threshold')
or args.get('output')
or args.get('output_json')):
by = PerfBdResult._by
elif depth is not None or hot is not None:
by = ['z', 'function']
labels = ['function']
@@ -1501,7 +1503,7 @@ def report(paths, *,
by = ['function']
if fields is None:
fields = ['readed', 'proged', 'erased']
fields = PerfBdResult._fields
# figure out depth
if depth is None: