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

Output raw call stack data #35

Closed
nziebart opened this issue Sep 13, 2018 · 5 comments
Closed

Output raw call stack data #35

nziebart opened this issue Sep 13, 2018 · 5 comments
Labels
enhancement New feature or request

Comments

@nziebart
Copy link

It would be useful (and I suspect not too difficult) to be able to retrieve the raw call stack data for an invocation of py-spy. This would allow aggregating data from many machines, and performing ad-hoc aggregations over different time ranges.

@benfred benfred added the enhancement New feature or request label Sep 14, 2018
@benfred
Copy link
Owner

benfred commented Sep 14, 2018

This shouldn't be too hard to do.

I'm also thinking about adding a python api (using approach I wrote about here: http://benfrederickson.com/writing-python-extensions-in-rust-using-pyo3/) which would let you script operations like this.

@nziebart
Copy link
Author

A python api would be awesome!

@nziebart
Copy link
Author

It would also be nice to be able to get "idle" stack traces (i.e., not omit them). Sometimes it's useful to know where idle time is being spent (e.g., I might want to know what % of time I spend waiting on a particular db query)

@Norbo11
Copy link

Norbo11 commented Feb 12, 2019

Any progress on this?

I have a totally different use case than simply generating flame graphs or viewing the profiling information in real-time. I would love to be able to get the raw data used to generate the flame graph, for example.

@Norbo11 Norbo11 mentioned this issue Apr 1, 2019
@benfred
Copy link
Owner

benfred commented Sep 23, 2019

I've added this in v0.2.0

@nziebart there is also now a ``--idle``` flag to show idle frames

@benfred benfred closed this as completed Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants