利用WonderLeak进行内存泄露检测【一】

1、下载地址:

WonderLeak - Visual Studio Marketplace

https://www.relyze.com/

2、WonderLeak支持vs2017 2019扩展,或者单独启动

3、https://www.relyze.com/docs/wonderleak/help/w/overview/msvc_extension1.png

4、对于二进制程序来说支持以下内存分配检测,注意,不支持跨函数检测,需要自己看代码逻辑。

Profiling Groups

WonderLeak can profile allocations from the following groups:

  • Windows Heap - WonderLeak supports profiling heap allocations from the following families of Windows allocators which are serviced by the Windows heap:
    • Microsoft Visual Studio Common Runtime malloc and new
    • RtlAllocateHeap
    • HeapAlloc
    • LocalAlloc
    • GlobalAlloc
    • CoTaskMemAlloc
    • SysAllocString
    • SafeArrayCreate
  • Windows Handle - WonderLeak supports profiling handle allocations for the following Windows kernel objects:
    • ALPC Port
    • DebugObject
    • Directory
    • Event
    • File
    • IoCompletion
    • Job
    • Key
    • KeyedEvent
    • Mutant
    • Partition
    • Process
    • Profile
    • RegistryTransaction
    • Section
    • Semaphore
    • Session
    • SymbolicLink
    • Thread
    • Timer
    • TmEn (Transaction Manager Enlistment)
    • TmRm (Transaction Manager Resource Manager)
    • TmTm (Transaction Manager)
    • TmTx (Transaction Manager Transaction)
    • Token
    • TpWorkerFactory (Thread Pool Worker Factory)
    • WaitCompletionPacket
    • Windows Critical Section
    • Windows Thread Local Storage
    • Windows Fiber Local Storage
  • Borland Heap - All allocations serviced by the Borland Memory Manager (borlndmm.dll) or Run Time Library (RTL), typically used by applications developed with Delphi or C++ Builder.
  • User Heap/Handle Types (API) - WonderLeak exposes an API to assist in the profiling of custom user heap or handle allocations which are not covered by the above groups.

利用WonderLeak进行内存泄露检测【二】_风清扬_jd的博客-CSDN博客

相关推荐
郝学胜-神的一滴8 小时前
设计模式依赖于多态特性
java·开发语言·c++·python·程序人生·设计模式·软件工程
秋名山码民1 天前
技术创新驱动下的高端手机营销范式——以小米17ProMax为例的深度解析
程序人生
郝学胜-神的一滴1 天前
深入浅出:理解OpenGL的标准化设备坐标(NDC)
开发语言·程序人生·图形渲染
普贤莲花2 天前
得物面试总结20251210
程序人生·算法·leetcode
立志成为大牛的小牛2 天前
数据结构——五十八、希尔排序(Shell Sort)(王道408)
数据结构·学习·程序人生·考研·算法·排序算法
郝学胜-神的一滴2 天前
Linux进程管理:借助信号回收进程
linux·服务器·开发语言·c++·程序人生
立志成为大牛的小牛2 天前
数据结构——五十七、插入排序(王道408)
数据结构·笔记·程序人生·考研·算法
cnnews2 天前
做了个水陆缸
程序人生·风景
立志成为大牛的小牛3 天前
数据结构——五十六、排序的基本概念(王道408)
开发语言·数据结构·程序人生·算法
立志成为大牛的小牛3 天前
数据结构——五十五、散列查找的性能分析(线性探测法)(王道408)
数据结构·程序人生·考研·算法