Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Memory profiling in Visual Studio 2013

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

enter image description here

As a result I get the following summary:

enter image description here

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.

like image 709
Alexandr Avatar asked Oct 19 '13 22:10

Alexandr


People also ask

Does Visual Studio have a profiler?

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.

What is memory profiling in C#?

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 .

What is memory profiling?

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).


1 Answers

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.

like image 138
L.Trabacchin Avatar answered Sep 30 '22 22:09

L.Trabacchin