astrofrog / psrecord

Record the CPU and memory activity of a process :chart_with_upwards_trend:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to plot graph from activity.txt file.

bugcy013 opened this issue · comments

Hi Guys,

It's possible can we generate the graph from an activity.txt file.

Please guide me How to do that.

Thankyou
-Dhanasekaran.

@saimn implemented a nice tool to do this here: #9 - I'll try and review this soon as I agree it would be useful!

I agree, replotting an existing log would be great particularly if it's possible to include the smooth command from #49

I extracted @graysky2 code to file ..
https://gist.github.com/ricardojlrufino/c0d485f7968dfdb58519fb24c97de5c9
Using:

python3 plotutil.py activity-home.txt -o plot.png

It would be very useful if the merge was done ..