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?