Can we check memory leak for a running process using valgrind?

Viewed 29

We generally run the below command to check memory leaks

vagrind <executable> --leak-check=full
example : valgrind ./a.out --leak-check=full

Is there a way to attach valgrind on a running process using PID instead of running the executable along with valgrind?

0 Answers
Related