Skip to content

Add flat argument to print to Profiler.print()#294

Merged
joerick merged 1 commit intojoerick:mainfrom
gnuille:print-flat
Jun 27, 2024
Merged

Add flat argument to print to Profiler.print()#294
joerick merged 1 commit intojoerick:mainfrom
gnuille:print-flat

Conversation

@gnuille
Copy link

@gnuille gnuille commented Mar 5, 2024

Currently flat can only be enabled via command line:

pyinstrument -p flat myscript.py

Add the flat argument to the Profiler.print method so it can be used via the python API.

@dpinol
Copy link

dpinol commented Jun 5, 2024

Hi,
what do you think about this?
thanks

@joerick joerick merged commit b364e53 into joerick:main Jun 27, 2024
@joerick
Copy link
Owner

joerick commented Jun 27, 2024

looks good to me. thanks. It might be a little while before it's included in a release, my work on pyinstrument tends to be in spurts.

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.

3 participants