astrofrog / psrecord

Record the CPU and memory activity of a process :chart_with_upwards_trend:
BSD 2-Clause "Simplified" License
591 stars 76 forks source link

Plot doesn't show up #33

Closed ghostSystem closed 6 years ago

ghostSystem commented 6 years ago

On running the following command: psrecord 1330 --log activity.txt --plot plot.png

After we use ctrl+z to stop the process the activity.txt file is created but there is no plot.png file created.

Moreover, I don't want to use --duration here.

How can this be solved ?

ghostSystem commented 6 years ago

Update. Should have used ctrl+c to stop the process. Now it shows up.

astrofrog commented 6 years ago

The reason ctrl+z didn't work is that it stops but does not terminate the process (that is, the process can be resumed or sent to the background).

entenbein commented 2 years ago

Did anyone try to stop psrecord from inside a bash script? Sending SIGINT after recording leaves me with just a log file and no pliot file.