Associated Memory

In order to get an idea of how much memory a resource instance is using, it is possible to associate unmanaged memory with a resource instance. Memory is associated with an instance when the instance creation function makes a call to a memory allocation function. For example, if CreateWindow makes a call to HeapAlloc, the memory allocated by HeapAlloc is associated with the window handle (HWND) returned by CreateWindow.

Memory association is not enabled by default. To enable it, select Associate Memory with Resource under the View menu.

NOTE! To avoid presenting duplicate memory, nested memory is not presented by the profiler. For example, if HeapAlloc makes a call to VirtualAlloc, the memory allocated by VirtualAlloc will not be presented by the profiler. However, the profiler still tracks this memory, and the information is used by the native memory view.

 

 

.NET Memory Profiler User Manual

© Copyright 2002-2008. SciTech Software AB.

For information about .NET Memory Profiler, see the product site at http://memprofiler.com

.NET Memory Profiler is developed by SciTech Software AB