I would like to see where in my application memory is being allocated and
when.
I would like to add code to my Windows Service app so that it 'spits out'
total memory usage at that point as well as a time stamp. I want to add a
literal string to the message indicating exactly where I am at in the
process.
How would I do this? I have been using CLR Profiler and Perfmon. They are
pretty and informative but I need more granular detail that will instrument
my code, not just telling me that System.String or System.Byte[] has
survived the garbage collector.
o.k. i'll admit it, i have a memory leak because I have instantiated a bunch
of objects, i have declarations of various data types at various levels of
scope and now I have to really understand what is going on.
I am using the Enterprise Library if there is anything there that would be
useful.
I thought I say some .NET memory methods/functions that would give me some
statistics but I can't seem to find them.
Thank you for any ideas.
-hazz