psrecord

Feb 13, 2024

https://github.com/astrofrog/psrecord

A simple tool that automates measuring the memory and CPU usage of a process.

I wrote a bit about how to do this using a bash script and ps a long time ago, but psrecord wraps it up into a useful package.

To measure the performance of make webpack on a project I'm working on, I:

And got out both a log file and this useful chart:

↑ up