You could use a memory profiler like
.NET Memory Profiler (http://memprofiler.com/)
or
CLR Profiler (free) (http://clrprofiler.codeplex.com/)
More Related Contents:
- How to get object size in memory? [duplicate]
- Explicitly freeing memory in c#
- What Are Some Good .NET Profilers?
- Any decent C# profilers out there? [closed]
- Benchmarking small code samples in C#, can this implementation be improved?
- Convert any object to a byte[]
- Reducing memory usage of .NET applications?
- Best .NET memory and performance profiler? [closed]
- .Net and Bitmap not automatically disposed by GC when there is no memory left
- Does garbage collector call Dispose()? [duplicate]
- How to access property of anonymous type in C#?
- How to do ToString for a possibly null object?
- How to convert object to Dictionary in C#?
- Allocating more than 1,000 MB of memory in 32-bit .NET process
- How to use StringBuilder wisely?
- Where are methods stored in memory?
- Garbage Collection not happening even when needed
- Memory usage in C#
- ExecuteReader requires an open and available Connection. The connection’s current state is Connecting
- How do I run a simple bit of code in a new thread?
- Bring a window to the front in WPF
- How to get a list of properties with a given attribute?
- Discovering derived types using reflection
- How to read a .NET Guid into a Java UUID
- System.Net.WebClient unreasonably slow
- Using HashSet in C# 2.0, compatible with 3.5
- How do I tell if a type is a “simple” type? i.e. holds a single value
- C# exception filter?
- Can’t find how to use HttpContent
- what’s the use of string.Clone()?