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

Specify by process name

adabiraihan opened this issue · comments

commented

Hi dev,

Is there any way to monitor the program by the process name, not the PID ?

Thanks.

Hey! Have you looked at goeffel? You can run it providing a so-called "PID command", a command which is supposed to return the process ID on stdout. This is powerful especially in the context with pgrep. Example: $ goeffel --pid-command 'pgrep stress --newest'.

https://github.com/jgehrcke/goeffel#goeffel-data-acquisition