开发者

Cannot detect unmanaged memory allocations in .NET

I want to determine the source of开发者_如何学C huge memory consumption of my app. My application is eating a lot of virtual memory (VM column in task manager or private bytes in VMMap)

My application is .net service but it uses C# wrappers around C++ objects.

I tried Red Gate Ants Memory profiler but it counts only managed objects and does not count memory allocated by unmanaged C++ new operator (which is simply calling Virtual Alloc).

Another problem with managed memory profiler is that does not allow to trace call graph - see picture below.

Cannot detect unmanaged memory allocations in .NET

Cannot detect unmanaged memory allocations in .NET


You can use DebugDiag. It will track C# and C++ objects.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜