Can I use the task manager to detect huge memory leaks? I have a small text parsing program that shows memory usage of about 640K when it starts. When I parse a file and index it, the memory usage increases depending on the file size. Then, when I βclearβ the index, my memory usage drops to about 1400K. After that, I can add as many files as I want, and when I clear the index, memory usage drops to this level of 1400k + or -5%.
This is after I made changes to my program. Before the change, memory usage will continue to grow every time I indexed some files and then cleaned up. Therefore, after many purifications, the use of my program in memory increased and increased.
I understand that this is probably a βhackerβ way to profile my application, but I'm a student, and all I managed to find are commercial profiling tools that are not available. I also read about valgrind, which is linux only, and I am developing it on Windows. Is using the task manager accurate or am I mistaken?
source share