PerfMon plugin

Plugin=PerfMon retrieves infromation from the Windows Performance Monitor.

The Performance Monitor exposes several counters, which track various information. All available counters can be viewed using the Performance Monitor application. To open it, either run PerfMon.msc or type it in the Start menu.

Note: The names of the objects, counters and instances must be in English.

Options

General measure options
All general measure options are valid.
PerfMonObject
Name of the performance object.

Examples: Memory, Processor
PerfMonCounter
Name of the performance counter.

Examples: % Processor Time, Disk Read Bytes/sec
PerfMonInstance
Name of the counter instance. Can be left unspecified if the counter does not have any instances.

Example: _Total
PerfMonDifference Default: 1
If set to 0, the current value of the counter is used as the measure value. If set to 1, the difference between the current and previous counter value is used instead. This is useful as many of the performance values are counters and you usually want to know how much the counter has increased since last update.

Example

[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=0,0,0,255
[MeasureProcessCount]
; Measures the number of processes running.
Measure=Plugin
Plugin=PerfMon
PerfMonObject=System
PerfMonCounter=Processes
PerfMonDifference=0
[MeasureDiskAccess]
; Measures disk access of the C: drive.
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Bytes/sec
PerfMonInstance=C:
[MeterProcessCount]
Meter=String
MeasureName=MeasureProcessCount
X=5
Y=5
W=200
H=20
FontColor=255,255,255,255
Text=Total processes: %1
[MeterDiskAccess]
Meter=String
MeasureName=MeasureDiskAccess
X=5
Y=25
W=200
H=20
FontColor=255,255,255,255
AutoScale=1
Text=Disk access: %1B/sec

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 Perfmon 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