We have an application with hundreds of possible user actions, and think about how enhancing memory leak testing.
Currently, here's the way it happens: When manually testing the software, if it appears that our application consumes too much memory, we use a memory tool, find the cause and fix it. It's a rather slow and not efficient process: the problems are discovered late and it relies on the good will of one developer.
How can we improve that?
- Internally check that some actions (like "close file") do recover some memory and log it?
- Assert on memory state inside our unit tests (but it seems this would be a tedious task) ?
- Manually regularly check it from time to time?
- Include that check each time a new user story is implemented?