Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pp: add --humanize | -H to #228

Open
yarikoptic opened this issue Dec 3, 2024 · 0 comments
Open

pp: add --humanize | -H to #228

yarikoptic opened this issue Dec 3, 2024 · 0 comments

Comments

@yarikoptic
Copy link
Member

ATM even with pretty-printing hard to get a good idea on how much memory was used and requires translation of time from seconds. With -H pp should not print json as is, but first humanize known records and otherwise floating point numbers for more humane consumption and only then print, e.g. instead of

 'execution_summary': {'average_pcpu': 978.0139225181615,
                       'average_pmem': 0.03751008878127522,
                       'average_rss': 451305015.7869248,
                       'average_vsz': 522215819.88054895,

have

 'execution_summary': {'average_pcpu': '978.01%',
                       'average_pmem': '0.03%',
                       'average_rss': '451.3 MB',
                       'average_vsz': '522.2 MB',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant