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 timeout option to vprofile? #118

Open
ghost opened this issue Oct 26, 2023 · 1 comment
Open

Add timeout option to vprofile? #118

ghost opened this issue Oct 26, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 26, 2023

Description

I have program that might not exit and Ctrl+C doesnt save to file however python -m cProfile saves to file. It would be good to have timeout option to kill that and get stats saved to file

@ghost
Copy link
Author

ghost commented Oct 26, 2023

vprof -c h "Bot.py -e email -s -n" --output-file profile.json
If i use exit() from my program it saves, but thing is my program freezes so exit might not be called thats why I need timeout. I should at least Ctrl +C and vprof should make sure it saves in file or it should save periodically in file

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

No branches or pull requests

0 participants