Como obtenho o uso atual da CPU para cada thread em um aplicativo específico? É possível obter essas informações de algum lugar ou usando alguma ferramenta?
windows
central-processing-unit
dabest1
fonte
fonte
Perfmon (Performance Monitor) should give you the details you want.
The following assumes Windows 2000, XP or Server 2003. I haven't checked but I think the performance monitor is a bit different in Vista, Windows 7 & Server 2008.
To run the Performance Monitor, go to Start > Control Panel > Administrative Tools > Performance
To add a graph for each thread of an application, right-click on the graph and choose Properties. You might want to remove any of the defaults that it comes with to give you a cleaner graph.
Click the "Add..." button and make sure "Use Local Computer Counters" is checked (unless you want to monitor a different server, in which case, go ahead and choose that option).
Under "Performance Object" choose "Thread"
Select the counter "% Processor Time", and then select all of the threads you wish to monitor (control+click to select multiple). Click "Add" and then "Close".
Back in the properties, you can customise the graph however you wish, by assigning colours, patterns, etc. Click OK.
You might need to start the graphing, if you do, then clicking the red STOP sign so that it's not enabled will start the graph.
fonte
Process Monitor (sysinternals)
I would think that ProcessMonitor by Sysinternals (recently purchased by Microsoft) would probably work.
Here is the link:
http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
fonte
you could use the inbuilt windows performance monitor, just type perfmon at the start, run. once on perfmon, click the plus sign, select process, you choose your process, then select what you want to see. back to basics!
fonte