Invention Grant
- Patent Title: Adding a profiling agent to a virtual machine to permit performance and memory consumption analysis within unit tests
-
Application No.: US11968351Application Date: 2008-01-02
-
Publication No.: US09727436B2Publication Date: 2017-08-08
- Inventor: Mohammed Mostafa
- Applicant: Mohammed Mostafa
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Bond Schoeneck & King, PLLC
- Agent George R. McGuire; John Pivnichny
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F11/30 ; G06F11/34 ; G06F9/455 ; G06F11/36

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.
Public/Granted literature
Information query