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 support for writing out Speedscope files #134

Merged
merged 1 commit into from
Jul 28, 2019
Merged

Add support for writing out Speedscope files #134

merged 1 commit into from
Jul 28, 2019

Conversation

benfred
Copy link
Owner

@benfred benfred commented Jul 28, 2019

This adds support for writing out speedscope files, as well as writing out raw
call stack data. The speedscope code is adapted from rbspy.

This change also refactors the commandline arguments significantly, changing
to take subcommands (py-spy dump -p 1234) instead of flags. While this
is a breaking change, I think it is a better long term solution for py-spy -
and it makes more sense for the '-f' flag to be the file format and '-o'
to be the filename (which would have broken commandline compatability anyways).

This adds support for writing out speedscope files, as well as writing out raw
call stack data. The speedscope code is adapted from rbspy.

This change also refactors the commandline arguments significantly, changing
to take subcommands (```py-spy dump -p 1234```) instead of flags. While this
is a breaking change, I think it is a better long term solution for py-spy
- and it makes more sense for the '-f' flag to be the file format and '-o'
to be the filename (which would have broken commandline compatability anyways).
@benfred benfred merged commit 81fdec4 into master Jul 28, 2019
@benfred benfred deleted the speedscope branch July 28, 2019 19:34
@benfred benfred mentioned this pull request Jul 28, 2019
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.

1 participant