Visual Leak Detector

介绍

(翻译仅供参考)

Visual C++ provides built-in memory leak detection, but its capabilities are minimal at best. This memory leak detector was created as a free alternative to the built-in memory leak detector provided with Visual C++. Here are some of Visual Leak Detector’s features, none of which exist in the built-in detector:

Visual C++提供了内置内存泄漏检测,但其性能很低。这个内存泄漏检测器被创建为用Visual C++提供的内置内存泄漏检测器的免费替代。这里有一些内置检测器中没有的Visual Leak Detector的特点:

  • Provides a complete stack trace for each leaked block, including source file and line number information when available.
  • Detects most, if not all, types of in-process memory leaks including COM-based leaks, and pure Win32 heap-based leaks.
  • Selected modules (DLLs or even the main EXE) can be excluded from leak detection.
  • Provides complete data dumps (in hex and ASCII) of leaked blocks.
  • Customizable memory leak report: can be saved to a file or sent to the debugger and can include a variable level of detail.
  • 为每个泄漏的块提供完整的堆栈跟踪,包括源文件和行号信息(如果可用)。
  • 检测大多数(如果不是全部)进程内内存泄漏类型,包括基于COM的泄漏和纯Win32基于堆的泄漏。
  • 选定的模块(dll甚至主exe)可以从泄漏检测中排除。
  • 提供泄漏块的完整数据转储(十六进制和ASCII格式)。
  • 可自定义的内存泄漏报告:可以保存到文件或发送到调试器,并且可以包含可变详细级别。

Other after-market leak detectors for Visual C++ are already available. But most of the really popular ones, like Purify and BoundsChecker, are very expensive. A few free alternatives exist, but they’re often too intrusive, restrictive, or unreliable. Visual Leak Detector is currently the only freely available memory leak detector for Visual C++ that provides all of the above professional-level features packaged neatly in an easy-to-use library.

Visual C++的其他售后市场泄漏检测器已经可用。但是大多数真正流行的,像Purify和BoundsChecker,都非常昂贵。一些免费的替代品存在,但它们往往过于侵入,限制,或不可靠。Visual Leak Detector是目前(原文可能写于约四年前)唯一可用的Visual C++的内存泄漏检测器,它提供了所有以上的专业级功能,在一个易于使用的库中被打包。

Visual Leak Detector is licensed free of charge as a service to the Windows developer community. If you find it to be useful and would like to just say “Thanks!”, or you think it stinks and would like to say “This thing sucks!”, please feel free to drop us a note. Or, if you’d prefer, you can contribute a small donation. Both are very appreciated.

Visual Leak Detector是免费授权给Windows开发人员社区的服务。如果你觉得它有用,只想说“谢谢!,或者你觉得它很臭,想说“这东西很烂!“,请随时给我们留言。或者,如果你愿意,你可以捐一点钱。两者都非常感谢。

下载安装


理论上是供Visual C++ 2008-2015使用,实际上似乎VS2019也能用。

使用

#include <iostream>
#include<memory>#include<vld.h>int main()
{std::cout << "begin\n";int* a = new int[10]{ 0,1,2,3,4,5,6,7,8,9 };std::cout << a << " " << a + 1 << "\n";//std::unique_ptr<int[]> a(new int[10]{ 0,1,2,3,4,5,6,7,8,9 });//std::cout << &a[0] << " " << &a[1] << "\n";std::cout << "end\n";return 0;
}


Intel采用小端编址,低位低地址,高位高地址。
参考资料:
大端和小端

Visual Leak Detector VS2019相关推荐

  1. VS2019,C++,内存检测泄漏工具VLD(Visual Leak Detector)的使用

    1.下载工具VLD 网址:Visual Leak Detector | Enhanced Memory Leak Detection for Visual C++ 百度网盘链接:https://pan ...

  2. Visual Leak Detector 帮助检查内存泄露

    计算机为 win7,X64,vs2010 http://vld.codeplex.com/releases 从上述地址下载vld-2.3-setup.exe 安装后,打开vs2010在项目属性--VC ...

  3. vs2008 使用Visual Leak Detector检测内存泄漏

    http://hi.baidu.com/maydaygmail/item/8ea6ebef87ca9103560f1dfe 转自:http://hi.baidu.com/sunchongjing/bl ...

  4. VC内存泄露检查工具:Visual Leak Detector

    www.diybl.com 时间:2009-04-12 作者:匿名 编辑:sky 初识Visual Leak Detector        灵活自由是C/C++语言的一大特色,而这也为C/C++程序 ...

  5. Visual Leak Detector 2 2 3 Visual C++内存检测工具

    分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow 也欢迎大家转载本篇文章.分享知识,造福人民,实现我们中华民族伟大复兴! Visu ...

  6. 使用 Visual Leak Detector 检测内存泄漏

    个人心得:挺不错,可以定位到指针所在文件,甚至是函数及行号.使用也挺方便. 感谢开源代码!http://vld.codeplex.com/ 转载自:http://www.51testing.com/? ...

  7. Windows和Linux内存检测工具:Valgrind,Visual Leak Detector,CppCheck, Cpplint

    1 Linux内存泄漏检测工具Valgrind Valgrind简介 Valgrind是一套Linux下,开放源代码(GPL V2)的仿真调试工具的集合.Valgrind由内核(core)以及基于内核 ...

  8. 使用Visual Leak Detector工具检测内存泄漏

    1.下载Visual Leak Detector工具并安装,下载链接:https://kinddragon.github.io/vld/ 2.在需要检测的工程中cpp文件第一行添加 include & ...

  9. 【Visual Leak Detector】简介

    说明 使用 VLD 内存泄漏检测工具辅助开发时整理的学习笔记.本人博客园同步更新 文章目录 说明 1. 工具简介 2. 工具的官网链接 3. 工具的帮助文档 4. 工具的下载地址 5. 工具的 Git ...

  10. Visual Leak Detector (VLD)使用

    Visual C++内置内存泄露检测工具,但是功能十分有限.VLD就相当强大,可以定位文件.行号,可以非常准确地找到内存泄漏的位置,而且还免费.开源! 在使用的时候只要将VLD的头文件和lib文件放在 ...

最新文章

  1. 酷讯出来的张一鸣为什么做了新闻不是旅游?
  2. TSNE 正规英文api
  3. easyui combotree的使用
  4. xml格式是什么示例_什么是对抗示例?
  5. C# Dispose模式
  6. key 和secret_Java Secret:加载和卸载静态字段
  7. 数据类型之Integer与int
  8. python编程制作接金币游戏,闪电侠接金币的FlashMan类
  9. sde oracle11g,Arcsde post oracle11g报错解决办法
  10. 反射之关于MethodInfo的使用
  11. jsp用户登录验证_Java之使用过滤器进行登录验证
  12. Code jock使用笔记
  13. 360浏览器在b站看直播html5,用360浏览器看Bilibili视频很卡怎么办_360浏览器看B站视频卡如何解决-win7之家...
  14. 【环境保护网】-环保设备_环保设备网_环保产品网_中国环境保护网
  15. csgo单板透视距离绘制代码
  16. CAD工具:PCB绘制、仿真软件
  17. html5跟随手指的小球,Android自定义圆形View实现小球跟随手指移动效果(详细介绍)...
  18. ping 请求超时是什么原因呢?
  19. Win32环境下轻松调试单板安全模式软件下载功能
  20. 微信小程序开发制作 | 小程序开发者工具功能介绍

热门文章

  1. 置换流水车间调度问题的matlab求解,置换流水车间调度问题的几种智能算法
  2. 超纯水颗粒计数器在电子半导体中的应用
  3. 数据采集—数据库基础及采集
  4. VMware虚拟机中Windows11无法连接网络
  5. 中央处理器cpu中的什么是计算机的指挥中,计算机中央处理器CPU的组成有哪些
  6. party_bid_core总结
  7. 认知升级是比其他一切技能都更为重要的思维模式转变
  8. AD9854+STM32正弦波信号发生器
  9. 关于微擎人人商城互动直播通信服务安装和启动教程记录
  10. 刷B站学数分Day1|如何写出一份合格的数据分析师简历