开发者

.NET how to measure how many bytes allocated in a request?

开发者 https://www.devze.com 2023-03-25 12:16 出处:网络
I need to trace objects that are al开发者_如何转开发located in a request. Is there any tool or command that can help me know how many bytes are allocated and when?I think Ants Memory Profiler can help

I need to trace objects that are al开发者_如何转开发located in a request. Is there any tool or command that can help me know how many bytes are allocated and when?


I think Ants Memory Profiler can help you so much here, however it is not free, but they have a trial version "for 14 days or so", give it a shot.


You can use the CLRProfiler sample to see this. Depending on your platform, there is a version for .NET 2 and one for .NET 4. And it is free!

It does pretty graphs/maps to show you where memory was allocated.

0

精彩评论

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