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

Empty results when psrecord starts a command #24

Open
saaj opened this issue Feb 20, 2018 · 2 comments
Open

Empty results when psrecord starts a command #24

saaj opened this issue Feb 20, 2018 · 2 comments
Labels

Comments

@saaj
Copy link

saaj commented Feb 20, 2018

psrecord --plot 0.png --interval 0.1 "python -m timeit '2 * 2'"

does not work

There's workaround with bash which works:
python -m timeit '2 * 2' & psrecord --plot 1.png --interval 0.1 $!

works

@astrofrog astrofrog added the bug label Feb 21, 2018
@kinow
Copy link

kinow commented Nov 23, 2018

Testing a program with several calls to subprocess.Popen. The graphs were quite different, and this little trick helped me to better visualize what was going on. +1 and thanks!!

@guyarad
Copy link

guyarad commented Jan 23, 2021

I suppose this cute library isn't very maintained... I'll try to get around to it.
In the meantime, another workaround is using --include-children flag. It's not idea, because if your process creates sub processes you might not want to count them too...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants