{"action":"created","issue":{"url":"https://api.github.com/repos/astrofrog/psrecord/issues/9","repository_url":"https://api.github.com/repos/astrofrog/psrecord","labels_url":"https://api.github.com/repos/astrofrog/psrecord/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/astrofrog/psrecord/issues/9/comments","events_url":"https://api.github.com/repos/astrofrog/psrecord/issues/9/events","html_url":"https://github.com/astrofrog/psrecord/pull/9","id":35431688,"number":9,"title":"Add a psplot command to plot and compare stats from multiple runs of psrecord","user":{"login":"saimn","id":311639,"avatar_url":"https://avatars.githubusercontent.com/u/311639?v=3","gravatar_id":"","url":"https://api.github.com/users/saimn","html_url":"https://github.com/saimn","followers_url":"https://api.github.com/users/saimn/followers","following_url":"https://api.github.com/users/saimn/following{/other_user}","gists_url":"https://api.github.com/users/saimn/gists{/gist_id}","starred_url":"https://api.github.com/users/saimn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saimn/subscriptions","organizations_url":"https://api.github.com/users/saimn/orgs","repos_url":"https://api.github.com/users/saimn/repos","events_url":"https://api.github.com/users/saimn/events{/privacy}","received_events_url":"https://api.github.com/users/saimn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2014-06-10T22:18:48Z","updated_at":"2016-12-02T16:55:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/astrofrog/psrecord/pulls/9","html_url":"https://github.com/astrofrog/psrecord/pull/9","diff_url":"https://github.com/astrofrog/psrecord/pull/9.diff","patch_url":"https://github.com/astrofrog/psrecord/pull/9.patch"},"body":"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.\nIt 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).\nI 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 ;-).\n\n```\nusage: psplot [-h] [-m] [-c] [-o OUTPUT] [files [files ...]]\n\nPlot stats from psrecord\n\npositional arguments:\n  files                 List of files to plot\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -m, --mem             Show memory values\n  -c, --cpu             Show cpu values\n  -o OUTPUT, --output OUTPUT\n                        Save the plot to a file\n```\n"},"comment":{"url":"https://api.github.com/repos/astrofrog/psrecord/issues/comments/264503416","html_url":"https://github.com/astrofrog/psrecord/pull/9#issuecomment-264503416","issue_url":"https://api.github.com/repos/astrofrog/psrecord/issues/9","id":264503416,"user":{"login":"astrofrog","id":314716,"avatar_url":"https://avatars.githubusercontent.com/u/314716?v=3","gravatar_id":"","url":"https://api.github.com/users/astrofrog","html_url":"https://github.com/astrofrog","followers_url":"https://api.github.com/users/astrofrog/followers","following_url":"https://api.github.com/users/astrofrog/following{/other_user}","gists_url":"https://api.github.com/users/astrofrog/gists{/gist_id}","starred_url":"https://api.github.com/users/astrofrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrofrog/subscriptions","organizations_url":"https://api.github.com/users/astrofrog/orgs","repos_url":"https://api.github.com/users/astrofrog/repos","events_url":"https://api.github.com/users/astrofrog/events{/privacy}","received_events_url":"https://api.github.com/users/astrofrog/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T16:55:27Z","updated_at":"2016-12-02T16:55:27Z","body":"@saimn - sorry for never replying to this. In principle I like this, but I'm wondering if ``psrecord-compare`` might be a better command name, so that it's clearer that it's associated with ``psrecord``. Or it could potentially be a special mode of psrecord, e.g. ``psrecord --compare``. Could you rebase this and we can go through a round of comments?"}}
{"actor":{"display_login":"astrofrog"}}