Valgrind?

Revision en1, by Namnamseo, 2016-07-17 14:01:12

Yesterday I had to monitor the memory usage, and I googled to come up with a tool named Valgrind.

It contains many interesting tools, such as Memcheck(monitors memory access and reports on invalid memory access), Massif(monitors memory usage, such as peak or average usage), and Callgrind(monitors function call and records usage). I think it'd be useful for some situations. I always used GDB to debug segmentation faults, but Valgrind looks better somehow.

IOI's contest environment has Valgrind (and GDB), but no one around me seems to have experience with Valgrind. What are the pros and cons of Valgrind you know?

Tags debug, valgrind

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Namnamseo 2016-07-17 14:01:12 633 Initial revision (published)