Programmatic Access to CLR Memory Usage from C#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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#

~harri
http://www.harrisreynolds.net/weblog
 
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 said:
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.
 
Back
Top