This answer to this question says that there’s no way to attach Valgrind to an already running process.
Are there any other tools for Linux that can report on memory usage but can attach to a process that’s already running?
This answer to this question says that there’s no way to attach Valgrind to
Share
You can use tools like
pmapor ps_mem.py to get more details about the memory use of running processes than you get fromtop. You won’t get all the fancy features from Valgrind like detecting memory leaks and such.