I am using valgrind’s memcheck to monitor my program.
The heap summary generated is big in size to atleast copy.
How can I copy the heap summary stuff into a file in Valgrind.
Thanks in advance. 🙂
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Valgrind has multiple ways to redirect its output.
to a file
valgrind –log-file=valgrind.out –leak-check=full yourapp
to any file descriptor.
valgrind –log-fd=123 –leak-check=full yourapp 123>valgrind.out
to an ipaddr/port nr
valgrind –log-socket=
You can also redirect valgrind output to a ipaddr/port nr using
–log-socket=ipaddr:port (you must then start valgrind-listener on this port).