You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!!
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...
psrecord --plot 0.png --interval 0.1 "python -m timeit '2 * 2'"
There's workaround with bash which works:
python -m timeit '2 * 2' & psrecord --plot 1.png --interval 0.1 $!
The text was updated successfully, but these errors were encountered: