Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 7 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 (a quick search on System.Diagnostics shows up the relevant page).

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .