Monday, April 21, 2008

CLR Profiler

Few days back I have written a tool using C# which does quite a few WIN32 native calls, and COM calls, while testing I have started doubting that may be my code has some memory leak.
To find out whether it is really leaking memory, I have taken help of a tool named ‘CLR Profiler’ written by Peter Sollich ( A CLR performance Architect), it’s a great tool in a word, it shows memory allocation( in bytes), allocation pattern, GC details, memory allocated for Large Objects …almost everything about memory management.

I found it very useful tool for checking memory leaks for the .NET apps( including ASP.NET apps/services).
While using this tool only thing to remember is that this tool takes quite a lot of memory for writing logs, and by default it writes the log into WINNT\Temp folder, perhaps the best idea would be setting this folder as non system drive( and which is having huge space ).

This tool is downloadable( with source code) , check out this link … http://www.microsoft.com/downloads/details.aspx?FamilyId=A362781C-3870-43BE-8926-862B40AA0CD0&displaylang=en.

1 comment:

Unknown said...

Great find NEO.....
Its really very usefull..

Thanx for sharing...