what should i do to find the reason that the program makes the big memory.
-
when i finished wrote the program.
i found that if I opened the program,the program's memory increased very quickly.and until to 1GB ,then it stopped.the program runs normally.I just want to know what part of the code caused the memory increasing.
so what should i do to fix the problem? -
when i finished wrote the program.
i found that if I opened the program,the program's memory increased very quickly.and until to 1GB ,then it stopped.the program runs normally.I just want to know what part of the code caused the memory increasing.
so what should i do to fix the problem?@nicker-player Use a memory monitoring tool like Valgrind (Linux) to see where in your app the most memory is allocated.