如何在C++中生成内存映射 [英] How to generate memory map in C++

查看:62
本文介绍了如何在C++中生成内存映射的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Visual Studio 用 C++ 创建了一个应用程序.根据我的应用程序,它应该占用很少的内存,但占用了很多内存.所以,现在我想明智地了解内存映射函数.Visual Studio 中是否有任何方法可以生成内存映射或任何其他工具或任何其他生成内存映射的方法.请尽快回复.

I have created an application in C++ using visual studio. And as per my application it should take very less memory but it is taking very much memory. So, now I want to know memory map function wise. Is there any way in Visual Studio to generate memory map or any other tool or any other way to generate memory map. Please Reply soon.

提前致谢.

玛雅克

推荐答案

您可以尝试使用 目视检漏仪.它不会为您提供明智的内存使用情况,但会在调试器输出中突出显示泄漏的内存跟踪.你必须玩一会儿才能习惯它.

You could try using Visual Leak Detector. It will not give you function wise memory usage but will highlight leaked memory traces in the debugger output. You'll have to play around a bit go get used to it.

这篇关于如何在C++中生成内存映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆