-
Notifications
You must be signed in to change notification settings - Fork 76
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 a psplot command to plot and compare stats from multiple runs of psrecord #9
base: main
Are you sure you want to change the base?
Conversation
@saimn - sorry for never replying to this. In principle I like this, but I'm wondering if |
@astrofrog - I had also forgotten this PR ! 😄 Ok for the rebase. |
@astrofrog - I pushed the rebased branch with a few updates. About the command interface, I think I chose
|
So... better late than never, am I right? ;) I think my preferred option would be Is there a way we can re-use the existing plotting code so that if someone does |
@astrofrog - Ok ;), I will have a look. |
This allow to compare multiple runs of psrecord on one plot. I have added a new command since it is easier than playing with argparse's sub-parsers.
It takes a list of log files from psrecord, with options to plot only mem or cpu. I don't know what is the best for colors and linestyles to distinguish easily all the lines (suggestions are welcome ;)). Currently it uses mpl's color cycle, so mem and cpu for a file will have the same color (and linestyle).
I didn't modify the plot from
main.py
, it could probably use the same code, but I'm waiting for your feedback before going further ;-).