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

@@ -1035,14 +1035,16 @@ def main(ci_paths,
# figure out what fields we're interested in
labels = None
if by is None:
if depth is not None or hot is not None:
if args.get('output') or args.get('output_json'):
by = StackResult._by
elif depth is not None or hot is not None:
by = ['z', 'function']
labels = ['function']
else:
by = ['function']
if fields is None:
fields = ['frame', 'limit']
fields = StackResult._fields
# figure out depth
if depth is None: