# Install procpath tool (use "python3 -m site --user-base" to find installation directory if needed)pip3installprocpath# Get the right version of sqlitepip3installapsw-wheels# Start recording metrics# i 5 - one datapoint every 5 seconds# r 120 - 120 datapoints (omit r for continuous capture, and use ctrl+c to stop)# d db.sqlite - a sqlite databaseprocpathrecord-i51-r120-ddb.sqlite'$..children[?(@.stat.pid == 42)]'# can also do '$..children[?(@.stat.pid in [8667, 8668, 8669, 8670])]'# Create graph# p 42 - the same process id from record command# -f img.svg - the name of the graph SVGprocpathplot-ddb.sqlite-qcpu-p42-fimg.svg