We have C#.Net windows application and i need to know how to get the memory consumption details of my application. I already tried System.Diagnostics.Process
to get the current process memory information. I need to know how many objects are in memory and also memory consumption details for each objects.
Asked
Active
Viewed 2,987 times
1
1 Answers
1
Please read about Garbage collector and take a look at this article MSDN Article The article shows the members of GC that can show you how to do a few things, how to get the total amount of allocated memory , how many times the GC has collected.
Other than that you'll have to probably use a profiler as given here.
You can also write your own profiler.This could be of help
-
ya i already used CLR profiler, ANTS profiler to track the memory allocation details. But i need the source code to get the objects and its memory allocation details. – Siva Jul 19 '13 at 10:52
-
@Siva please take a look at my updated answer – Rohit Jul 19 '13 at 10:59