Listing of Managed Processes
I just discovered a cool way of listing all processes that run managed code.
using System.Diagnostics;
using System;
class Program {
static void Test() {
PerformanceCounterCategory clr = new PerformanceCounterCategory(".NET CLR Memory");
foreach(string process in clr.GetInstanceNames()) {
if(process != "_Global_") {
Console.WriteLine(process);
}
}
}
}
Does anybody know an easier way to do it?
On my machine it prints (but it’s a pretty clean machine):
devenv
OUTLOOK
ConsoleTest.vshost
Anybody wants to share their list?
Comment Notification
If you would like to receive an email when updates are made to this post, please register here
Subscribe to this post's comments using