3 ms·
>Intuitively, calculating how much memory a program will leak in the worst case should be at least as much effort as fixing the memory leaks. Why? I could cal
by daenz 7y ago
>Intuitively, calculating how much memory a program will leak in the worst case should be at least as much effort as fixing the memory leaks.
Why? I could calculate the average amount of leaking of a program much easier than I could find all the leaks. Calculating just involves performing a typical run under valgrind and seeing how much was never freed. Do that N times and average. Finding the leaks is much more involved.
- kleiba 7y agoDid you read in my original post the distinction between calculating and measuring a leak?