Adding a profiling agent to a virtual machine to permit performance and memory consumption analysis within unit tests
Abstract
The present invention discloses a solution for adding a profiling agent to a virtual machine (VM), which permits unit test programs to access information relating to memory and performance from runtime data areas of the VM. Operations permitted by the agent can include starting/stopping VM monitor, getting objects from the heap, retrieving an invocation count, determining a size of an instantiated object, getting a current thread time, and the like. Memory and performance information gathered during a test can be stored for later analysis under a test version identifier. A comparison engine can create reports that use the stored performance and memory data, which can help developers compare memory/performance deltas among different unit versions. In one embodiment, the VM can be a JAVA VIRTUAL MACHINE (JVM) and the unit test programs can be JUNIT programs.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 25 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A system for performing unit testing comprising: a virtual machine configured to execute software units, wherein said virtual machine is a JAVA VIRTUAL MACHINE: a unit testing framework comprising at least one assert relating to memory and performance of runtime data areas of the virtual machine, the unit testing framework configured to test the software units executing within the virtual machine using the at least one assert, wherein said unit testing framework is JUNIT: a data store; a JAVA interface class located outside the virtual machine and comprising a set of methods relating to memory
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (25)
Non-Patent Literature (2)
- Gamma et al., "JUnit: A Cook's Tour", 2002, http://www.computing.dcu.ie/˜renaat/ca421/cookstour.htm.
- Viswanathan et al., "Java Virtual Machine Profiler Interface", 2000, IBM Systems Journal vol. 39, No. 1.