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

Replace times with percentage? #171

Closed
willmcgugan opened this issue Dec 16, 2021 · 2 comments
Closed

Replace times with percentage? #171

willmcgugan opened this issue Dec 16, 2021 · 2 comments

Comments

@willmcgugan
Copy link

Thanks for this project. I've found it really easy to use and I love the output.

Would it be possible to show the times as a percentage of the total runtime rather than in seconds? I would find that a more useful metric generally. Perhaps it could be enabled with a command line switch?

@joerick
Copy link
Owner

joerick commented Dec 17, 2021

Hi @willmcgugan ! Thanks for the kind words :)

I guess you're talking about the Console renderer? Yes I think we could add at to the output, under a renderer option / command line switch. Perhaps it's time to generalise the renderer options interface on the command line, too. I'll have a think about this.

@joerick
Copy link
Owner

joerick commented Jul 3, 2022

Now possible by doing pyinstrument -p time=percent_of_total!

@joerick joerick closed this as completed Jul 3, 2022
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

2 participants