I would like to monitor the process' threads performance including the child threads. Is it possible with perfmon? Currently it seams to only start monitoring already open threads.
I would like to monitor the process' threads performance including the child threads. Is it possible with perfmon? Currently it seams to only start monitoring already open threads.
Perfmon is pretty rudimentary. It allows you to view existing performance counter values, but it won't dynamically add and subtract counters for you.
What you probably want is an application that will dynamically add new counter values for you, such as when a new thread is launched within a process, you want to add that new thread to the counter set. Sysinternals Process Explorer will do this, if you look at the properties of a process and navigate to the Threads tab. New threads show up highlighted in green for a few seconds, and threads are highlighted in red for a few seconds when they exit.
You could also implement a more crude system yourself with WMI or Powershell... something that loops every couple seconds...