views:

130

answers:

3

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.

A: 

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

John Saunders
A: 

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.

Anders K.