AdvancedCPU plugin

Plugin=AdvancedCPU measures CPU usage by processes.

Note: The value is a calculation of process CPU time scaled by the number of CPU cores. In order to use the value as a percentage in meters, it must have the MaxValue of the measure dynamically set to the current value of an AdvancedCPU measure which has no CPUInclude or CPUExclude options. See the Example below.

Options

General measure options

All general measure options are valid.

CPUInclude

List of process names separated by ; (semicolon) to use in measurements . If specified, CPUExclude is ignored.

CPUExclude

List of processes separated by ; (semicolon) to ignore in measurements.

Note: The process Idle is a placeholder process used to manage unused CPU, therefore it should be excluded with CPUExclude=Idle to obtain CPU or TopProcess usage.

TopProcess Default: 0

Measures the process that is currently using the most CPU. Valid values are:

  • 1 : The value will be the process CPU usage.
  • 2 : The string value will be the process name. The number value is not altered.

Example

[Rainmeter]
Update=1000
DynamicWindowSize=1
BackGroundMode=2
SolidColor=0,0,0,255
;Measure maximum CPU time for use in MaxValue in other measures
[MeasureCPUMax]
Measure=Plugin
Plugin=AdvancedCPU
;Measure current CPU usage with MaxValue set
[MeasureCPU]
Measure=Plugin
Plugin=AdvancedCPU
CPUExclude=Idle
MaxValue=[MeasureCPUMax]
DynamicVariables=1
;Measure Name of top process
[MeasureTopName]
Measure=Plugin
Plugin=AdvancedCPU
CPUExclude=Idle
TopProcess=2
;Measure CPU usage of top process with MaxValue set
[MeasureTop%]
Measure=Plugin
Plugin=AdvancedCPU
CPUExclude=Idle
TopProcess=1
MaxValue=[MeasureCPUMax]
DynamicVariables=1
;Show current CPU usage as a percentage
[MeterCPU]
Meter=String
MeasureName=MeasureCPU
Y=2R
FontColor=255,255,255,255
FontSize=12
AntiAlias=1
Percentual=1
NumOfDecimals=2
DynamicVariables=1
Text=CPU Usage: %1
;Show name of top process
[MeterTopName]
Meter=String
MeasureName=MeasureTopName
Y=2R
FontColor=255,255,255,255
FontSize=12
AntiAlias=1
;Show CPU usage of top process as a percentage
[MeterTop%]
Meter=String
MeasureName=MeasureTop%
X=2R
Y=0r
FontColor=255,255,255,255
FontSize=12
AntiAlias=1
Percentual=1
NumOfDecimals=2
Text=(%1)

Note:

While rare, it is possible for the database of "counters" that is maintained by Performance Monitor in Windows to become damaged, which will cause the plugin to stop functioning correctly.

In many cases, this can be corrected by "rebuilding" the database from the Windows command line.

Run cmd.exe, being sure to run "As administrator". At the command line, enter the following commands in order:

cd c:\windows\system32
lodctr /R
cd c:\windows\sysWOW64
lodctr /R

You should see the following results:

Info: Successfully rebuilt performance counter setting from system backup store