I'm working on a GUI program in Java, and my boss is concerned that it will leak memory over time.
I'd like to create some tests that simulate an extended hammering on my GUI and check for leaks. Does anyone have some advice on how to do this? I looked in System, but could not find any functions for checking the amount of used memory.
The only thing I can think of at this point is to run it by hand, with perhaps some automated user input. If I can't get this automated it's not worth much.
I'd like to create some tests that simulate an extended hammering on my GUI and check for leaks. Does anyone have some advice on how to do this? I looked in System, but could not find any functions for checking the amount of used memory.
The only thing I can think of at this point is to run it by hand, with perhaps some automated user input. If I can't get this automated it's not worth much.