Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to track CPU by process in Windows 7 and log results in a file.

How could I do this please?

share|improve this question

2 Answers 2

You could use Powershell, there are multiple options depending on what you want to do:

To log the CPU % of a specific process:

PS C:\Users\mmoor> $A=Get-Process
PS C:\Users\mmoor> $A[0].Name
AcroRd32
PS C:\Users\mmoor> $A[0].CPU
3.9156251
PS C:\Users\mmoor> "$($A[0].Name) --- $($A[0].CPU)" >> .\ProcessCPU.Log

You could also just send the output of Get-Process to a file:

PS C:\Users\mmoor> Get-Process >> .\ProcessCPU.Log

You could create a schedule task that runs a script like this automatically.

share|improve this answer

Process Explorer can do this, although you can only create dump files for individual processes. It does provide an easy way to view all running processes though.

http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.