I need to track CPU by process in Windows 7 and log results in a file.
How could I do this please?
You could use Powershell, there are multiple options depending on what you want to do:
To log the CPU % of a specific process:
You could also just send the output of Get-Process to a file:
You could create a schedule task that runs a script like this automatically.
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.