.NET how to measure how many bytes allocated in a request?
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.
精彩评论