首页> 外国专利> 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.
机译:本发明公开了一种用于向虚拟机(VM)添加配置文件代理的解决方案,其允许单元测试程序从VM的运行时数据区域访问与存储器和性能有关的信息。代理允许的操作可以包括启动/停止VM监视器,从堆获取对象,检索调用计数,确定实例化对象的大小,获取当前线程时间等。测试期间收集的内存和性能信息可以存储在测试版本标识符下,以供以后分析。比较引擎可以创建使用存储的性能和内存数据的报告,这可以帮助开发人员比较不同单元版本之间的内存/性能差异。在一个实施例中,VM可以是JAVA虚拟机(JVM),而单元测试程序可以是JUNIT程序。

著录项

  • 公开/公告号US9727436B2

    专利类型

  • 公开/公告日2017-08-08

    原文格式PDF

  • 申请/专利权人 MOHAMMED MOSTAFA;

    申请/专利号US20080968351

  • 发明设计人 MOHAMMED MOSTAFA;

    申请日2008-01-02

  • 分类号G06F9/44;G06F11/30;G06F11/34;G06F9/455;G06F11/36;

  • 国家 US

  • 入库时间 2022-08-21 13:42:35

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号