Original Post
--- The word "recursive" in the subject should be regression.
Currently I am using the great Valgrind as a kind of regression testing tool.
My idea is after I changed the code, run Valgrind to see if anything wrong, such as any memory leaks.
Now I only use the option --leak-check=yes in Valgrind.
Because I'm new to Valgrind, I want to hear your experience/opinions on,
1, Is --leak-check=yes enough for memory check?
I'm not sure. There are several other options in Valgrind, such as --show-reachable.
Here memory check, I mean not only memory leak, but also such like double free, wild pointer, etc. ANY kind of memory problem.
2, Beside memory check, what can Valgrind help us in real application? CPU Cache profile? Thread?
Though now I only use the tool on a library without cache issue or multiple thread, it's good to know how you use Valgrind.
3, Did you integrate Valgrind to any auto test process?
Now I run Valgrind in standalone, not in any auto test process yet.
I felt so happy on using this great tool, it helped me to find several tricky memory problem.
If you can share your experience on it, that will be more great.
Currently I am using the great Valgrind as a kind of regression testing tool.
My idea is after I changed the code, run Valgrind to see if anything wrong, such as any memory leaks.
Now I only use the option --leak-check=yes in Valgrind.
Because I'm new to Valgrind, I want to hear your experience/opinions on,
1, Is --leak-check=yes enough for memory check?
I'm not sure. There are several other options in Valgrind, such as --show-reachable.
Here memory check, I mean not only memory leak, but also such like double free, wild pointer, etc. ANY kind of memory problem.
2, Beside memory check, what can Valgrind help us in real application? CPU Cache profile? Thread?
Though now I only use the tool on a library without cache issue or multiple thread, it's good to know how you use Valgrind.
3, Did you integrate Valgrind to any auto test process?
Now I run Valgrind in standalone, not in any auto test process yet.
I felt so happy on using this great tool, it helped me to find several tricky memory problem.
If you can share your experience on it, that will be more great.