automated: linux: modules: move memory measurement outside iteration loop
Restructure the testing loop to implement cumulative memory leak detection:
- Record memory usage once at the start of all iterations for a module
- Remove per-iteration memory recording and leak checking
- Move leak detection to after all iterations complete
- Record final memory usage after all load/unload cycles
This changes the approach from checking for leaks after each individual
load/unload cycle to checking for cumulative leaks after all cycles
complete. This provides cleaner test results with one pass/fail per
module instead of multiple results per module.
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
1 file changed