首页>
外国专利>
Adding a profiling agent to a virtual machine to permit performance and memory consumption analysis within unit tests
Adding a profiling agent to a virtual machine to permit performance and memory consumption analysis within unit tests
展开▼
机译:向虚拟机添加性能分析代理,以允许在单元测试中进行性能和内存消耗分析
展开▼
页面导航
摘要
著录项
相似文献
摘要
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.
展开▼