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

Running py-spy without capturing any output? #217

Closed
Detry322 opened this issue Jan 21, 2020 · 2 comments
Closed

Running py-spy without capturing any output? #217

Detry322 opened this issue Jan 21, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@Detry322
Copy link

Hey there!

I love your tool - I often use it to profile my python programs using the record feature, specifying a profiling output file with -o. When I run in this mode, it would be really nice if it didn't capture the output of my program, since sometimes the output is something I need to be watching for diagnostic purposes, or it's being piped into another program. Can you add an option to preserve the output of the program being profiled?

@benfred
Copy link
Owner

benfred commented Feb 9, 2020

Thanks for the suggestion! I've added the option for the 'record' mode here #222 to display stderr/stdout - and I've made it the default. You can get the old behaviour by passing a ``--capture``` flag to py-spy.

@benfred benfred added the enhancement New feature or request label Feb 9, 2020
@benfred
Copy link
Owner

benfred commented Feb 24, 2020

Change is in v0.3.3

@benfred benfred closed this as completed Feb 24, 2020
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

2 participants