Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#5 Add command line option for memory profiling.

open
Rupert Smith
None
5
2007-07-12
2007-07-12
Rupert Smith
No

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.).

Discussion

  • Rupert Smith
    Rupert Smith
    2007-07-12

    • assigned_to: nobody --> rupertlssmith