I'm trying to profile a system with a number of threads.
If I look at the process/threads using process explorer (from sysinternals), I can see a thread context switch rate, and a total number of context switches.
Finding the switch rate through WMI seems easy enough.
But the total number of context switches - mmm, tricky.
Several hours with the Thread API on MSDN didn't help, except to suggest some deprecated API, and that didn't go into enough detail to help either.
I figured the information was easy enough to collect, and there must be some way to get at it since PE does.
Thanks for any insight,