How to find out what elements are generated in memory when debugging C #?

Just curious, is it possible to find out which elements are generated while the program is running on the stack and heap? Is there a tool or confusion there to identify memory usage in VS2010 C # (Silverlight)? Thanks,

+4
source share
3 answers
+3
source

It is not built into Visual Studio, but you can use CLRProfiler to visualize the heap selection.

+1
source

Link types are always allocated on the heap. I suppose you can assume that value types are allocated on the stack. I do not know any tools that will show your overall stack usage.

You can use GC.GetTotalMemory () to determine the heap usage of your application.

0
source

All Articles