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

Add cmdline interface for renderer options and add percent_of_total option #183

Merged
merged 19 commits into from
May 29, 2022

Conversation

joerick
Copy link
Owner

@joerick joerick commented May 10, 2022

Adds a command-line option -p --render-option that allows arbitrary setting of render options.

For example, to show percentages on the command line, you can do pyinstrument -p time=percent_of_total myscript.py.

Processor options can also be set, using a JSON dict form, like pyinstrument -p 'processor_options={"filter_threshold": 0}' myscript.py, or dotted form, like pyinstrument -p processor_options.filter_threshold=0 myscript.py

Closes #180 and closes #174

@steinarvk-oda
Copy link
Contributor

Seems like this would remove the need for #180 !

@joerick joerick merged commit f43e6eb into main May 29, 2022
@joerick joerick deleted the percentages-render-option branch November 5, 2022 11:50
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

Successfully merging this pull request may close these issues.

2 participants