Jump to content

[Question] how to log a process cpu usage?


Recommended Posts

Posted

ok i wanna make a log file of an specified process in an x intervals to see how much cpu percentage it use.

i tried performance monitor of admin tools but no counter for that.

any idea? even a third party software?

thanks


Posted

Launch the process you want to monitor

Launch Perfmon

Left-hand pane, expand Performance Logs and Alerts, select Counter Logs

Right-click in right-hand pane, select New Log Settings & give it a name

Click Add Counters

Select Performance object: Process

Make your select of counter(s) & instance(s) - your process should be listed as an instance

Hint: Even if I want information on a specific process, I tend to select All counters and All instances, then just filter when I come to review the information

Click Add, then Close

Set your sample interval to suit (default is 1 per 15 seconds)

Click OK (and again if you get prompted that the folder you specified for the log does not exist)

When you want to start monitoring the process, right-click on the counter log and select Start (and later repeat but select Stop when you are ready to stop logging).

When you come to review the data, launch Perfmon and right-click on the graph then select Properties

Go to the Source tab and select Log files, then click Add

Browse to your .BLG file and add it, then click Apply

Select the Data tab and click Add - now you should only see all the processes that were running when you logged the data - find the instance(s) and counter(s) that are interesting and click Add for each, then Close

Click OK and you should see the logged information about the counter(s) selected - the default Y-axis is 0-100 so should work perfectly for percentage counters (for others you can manually the scale of the counter to make it fit, or the scale of the graph itself).

Hint: If you have multiple counters visible, use CTRL-H to highlight the selected one

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...