Add a command line option for memory profiling. This causes the GC to be run before tests, and a memeory usage delta to be added to test results, giving the state at the end of the test. Because of the nature of GC, this will not be completely accurate, but still usefull in many cases. The code to do memory profiling already exists in the toolkit, it just needs to be switched on.
Also, allow the memory profiling to be supplied through a call-back interface in the same way the self-timed tests can supply timings. This may be usefull where the memory stats are actually read from the JMX interface or another JVM, or otherwise determined (such as direct buffer allocation outside the JVM etc.).