2

Our application consumes lots of memory and we need to identify which function cause the maximum usage of the memory. Is their any way or even any existing tool to do this(Windows, Native)?

Here is the environment:

Windows Xp

VS2008

Native C++ (MFC Based)

Thanks so much.

Baiyan Huang
  • 6,463
  • 8
  • 45
  • 72
  • It's important to know what language/framework/platform/runtime your application is built with. – Rex M Mar 27 '09 at 02:37
  • What development tools are you using? What language? What are the components of the application? Have you tried Google? You need to put a bit more effort into your question so we can help you – Adam Liss Mar 27 '09 at 02:40
  • Thanks for the reminder, these information are provided now. – Baiyan Huang Mar 27 '09 at 03:06

3 Answers3

3

If you have Visual Studio 2008 Team System you can use the built-in memory allocation profiler. Here's a good MSDN article, Find Application Bottlenecks with Visual Studio Profiler using VS2008. There is also a profiler blog.

RedGate's ANTS

MemProfiler

ValGrind (free)

EDIT: since you updated to indicate C++, please also see this SO answer.

See Also:

.NET Memory Profiling Tools

Does anyone here have a favorite memory profiling/memory leak tool they like to use for their java webapps?

Best .NET memory and performance profiler?

Community
  • 1
  • 1
Mitch Wheat
  • 295,962
  • 43
  • 465
  • 541
0

Use a profiler. such as Automated QA's AQTime - http://www.automatedqa.com/products/aqtime/index.asp.

John Saunders
  • 160,644
  • 26
  • 247
  • 397
0

Most tools/profilers operate only on .NET apps which in your case is n/a

I've used Boundschecker and Purify to check for memory leaks/memory profiling for native applications (they got trial versions AFAIK) but you can also use the built in functions for this purpose if you are just interested in a one-shot analysis

look for _crtCheckMemory in your online help for a starting location.

AndersK
  • 35,813
  • 6
  • 60
  • 86