Use the CLR performance counters. If you need more detail, you can use the
profiler API, but it's easier to write to the prof API using C++ rather than
C#. Which pretty much sums up its ease-of-use metric ;)
--
Mickey Williams
Author, "Microsoft Visual C# .NET Core Reference", MS Press
www.servergeek.com
"Harris Reynolds" <mh********@mail.com> wrote in message
news:1D**********************************@microsof t.com...
I'm looking for an API to get the memory statistics of the running CLR.
Is this possible? I spent some time looking over
System.Runtime.InteropServices and the Environment class, but didn't find
anything.
Has anyone out there done this in C#?
~harris
http://www.harrisreynolds.net/weblog