Python lib to monitor CPU and Memory usage of any process Posted by zettacircl on Thursday July 25, 2019 @02:50AM from the github.com dept. https://github.com/astrofrog/psrecord ( 1 comment | 3 points | on HN )
Usage : from psrecord.main import monitor monitor(XXXX, logfile = "./test.log", plot=True, include_children=True)