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 want to know what the average CPU usage is of a particular executable on my PC over a day.

I could write a C# app to do this, but I figured this is exactly the sort of app Superuser would know about if it exists!

I'm using Windows 7 64 bit, in case it matters!

Thanks!

share|improve this question

3 Answers 3

up vote 6 down vote accepted

Go to the Performance Monitor. Right-click on the graph and select "Add Counters".

In the "Available counters" list, open the "Process" section by clicking on the down arrow next to it. Select "% Processor Time" (and any other counter you want).

In the "Instances of selected object" list, select the process you want to track. Then click on "Add >>". Click on OK once you have what you need.

This will give a graph of the CPU usage for the chosen application.

share|improve this answer
    
PERFECT!!! +1 Thanks –  Josh Comley Apr 30 '10 at 11:15

Another application that any Superuser should use is Process Explorer.

See in Mark Russinovich's technical blog the article The Case of the System Process CPU Spikes, where he tracked down a CPU spike caused by his network driver.

share|improve this answer
    
I use Process Explorer, but am not sure how to record CPU usage with it! –  Josh Comley Apr 30 '10 at 11:14
    
@joshcomley: read the above article. In short: Just double-click on the process and explore the available tabs. –  harrymc Apr 30 '10 at 11:41

Here's link that may be of use to you: http://zamov.online.fr/EXHTML/CSharp/CSharp_927308.html

Otherwise, have a look through the System.Diagnostics namespace (link not included to relevant msdn page because i don't have enough 'reputation'... a quick google on System.Diagnostics shows up the relevant page though).

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.