会员体验
专利管家(专利管理)
工作空间(专利管理)
风险监控(情报监控)
数据分析(专利分析)
侵权分析(诉讼无效)
联系我们
交流群
官方交流:
QQ群: 891211   
微信请扫码    >>>
现在联系顾问~
热词
    • 1. 发明公开
    • RESOURCE LEAK DETECTING METHOD, DEVICE, AND SYSTEM
    • 资源泄漏检测方法,装置和系统
    • EP3171274A1
    • 2017-05-24
    • EP15834959.7
    • 2015-05-27
    • Huawei Technologies Co. Ltd.
    • LI, JinghuiYUAN, JianqingGONG, XuewenYIN, Youzhan
    • G06F11/36
    • G06F11/079G06F11/073G06F11/0793G06F11/3037G06F11/3452G06F11/36G06F11/3612
    • Embodiments of the present invention disclose a resource leak detection method, apparatus, and system. The method includes: obtaining a target resource called when target code of a program runs, where the target code is partial code in program code; determining a first storage resource amount occupied by the target resource; determining whether the first storage resource amount occupied by the target resource satisfies a first preset condition; and if the first storage resource amount occupied by the target resource satisfies the first preset condition, determining a storage location of the target code as a resource leak location. In the embodiments of the present invention, the target code of the program can be tracked, and further, by means of detection, the storage location of the target code can be determined as the resource leak location. It is unnecessary to track all resource allocation and release, thereby reducing performance overheads and improving resource leak detection efficiency.
    • 本发明的实施例公开了资源泄漏检测方法,装置和系统。 该方法包括:获取程序目标代码运行时调用的目标资源,目标代码为程序代码中的部分代码; 确定目标资源占用的第一存储资源量; 判断目标资源占用的第一存储资源量是否满足第一预设条件; 若所述目标资源占用的第一存储资源量满足所述第一预设条件,则确定所述目标代码的存储位置为资源泄漏位置。 在本发明的实施例中,可以跟踪程序的目标代码,并且进一步通过检测可以将目标代码的存储位置确定为资源泄漏位置。 无需跟踪所有的资源分配和释放,从而降低了性能开销并提高了资源泄漏检测效率。