I develop a C code on Debian. I am looking for a program to monitor memory consumption of my code in real-time. The only value I care is the maximum RAM consumption, it should hold the value even if the the program is killed (e.g. by SIGKILL) . Could anyone suggest a handy tool for it?
Normally I use top -p pidnumber
, but it outputs with too much delay and if my program gets killed, it does not show the RAM consumption just before it is ended.