I want to explore how memory is allocated in my application. I have C# console app and use Visual Studio 2013 Professional.
I go to Analyze -> Perfomance and Diagnostics and selected .NET memory allocation
As a result I get the following summary:
In the chart CPU usage(%) per time. But how can I see allocate memory per time and GC events? I can not find it here.
The Visual Studio profiler supports both collecting and viewing traces. The profiler can also view traces that have been collected previously by other tools, such as dotnet-trace.
NET Memory Profiler is a powerful tool for finding memory leaks and optimizing the memory usage in programs written in C#, VB.NET or any other .
Specifically, the Memory Profiler can show you the following about object allocations: What types of objects were allocated and how much space they use. The stack trace of each allocation, including in which thread. When the objects were deallocated (only when using a device with Android 8.0 or higher).
I've Read on msdn blog that this inspection tool is not oriented on Memory leak inspection, so there's not such features, that are planned for future versions. This is intended for large heap inspections.
http://blogs.msdn.com/b/dotnet/archive/2013/04/04/net-memory-allocation-profiling-with-visual-studio-2012.aspx
it was about 2012 but seems that thins are not still changed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With