Microsoft.Diagnostics.Runtime "CLR MD"
CLR MD is a C# API used to build diagnostics tools. It gives you the power and flexibility of what the SOS and PSSCOR debugger extensions can do in a simple, fast C# API.
Some features include:
- Memory Diagnostics
- Walking the GC Heap.
- Walking roots in the process.
- Walking all heaps that CLR owns, such as JIT code heaps, AppDomain heaps, etc.
- Walk threads in the process to get managed callstacks.
- Walk AppDomains in the process.
- Walk COM wrappers in your process (v4.5+ only).
- And more...
CLR MD itself is open source as well and can be found here.