We have seen about the memory
allocation in Stacks, Heaps, Garbage collections etc. in order to examine these
things and find out memory leakages and other memory related issues, we need
some kind of tools to see the status of Stacks, Heaps etc.
There are a number of free and paid tools available in the market which can
analyze the state of the application, state of Stacks, Heaps, Garbage
Collection etc. Microsoft provides a free tool “CLR Profiler”, which allows
developers to see the allocations made their managed application.
provides the following information which
will be very useful in analyzing the state of your applications, and
investigation the causes behind issues like Memory Leakages etc.
- It shows the allocations made on the Managed Heap
- It shows the state of survivor objects which survive Garbage Collection
- It shows the references between objects.
- If shows the state of Garbage Collection throughout the lifecycle of your application.
Profiler captures the above information
and stored it into log files, the profiler offers various typed of
reports/views which help in analyzing the data through various dimensions.
Profiler for .Net Framework 4.0 is available for free and can be downloaded
from the following link.