Capture Thread-State-Change Duration and Timestamp
-
0 down vote favorite I am in need of monitoring the time it takes for a thread to change state to suspended, and back to active. Long story: I need to monitor the negative values of a DLL injection which is part of our product. DLLs are injected to applications when they start, as such, csrss suspends the thread (I believe it's the main thread), injects the DLLs and resumes the thread activity. In rare cases such injections take too long (~30 seconds), while the norm is way below one second, from a user point of view, you do not notice the delay. I was playing around with many applications, recently PerfMon which seems to have the ability, but I do not know how to capture the change. While at ideally I need it to work from command line (automation testing), manual activity will do for starters, I can find the CMD way from there. I do not know what category it fits, so I apologize if misplaced. Thanks in advance!