We use JUnit it for normal unit testing, integration testing, feature testing etc.
It will be useful to record memory consumed by individual test and compare with different run. Is there any JUnit extension that does this sort of thing already? (apparently IntelliJ 's JUnit runner does this)