Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 482

Processes CPU usage

$
0
0
A while ago I was trying to get the CPU usage of different processes. For this I have the following measure:

Code:

[MeasureHighestCPU1]Measure=PluginPlugin=UsageMonitorAlias=CPUIndex=1Blacklist=_Total|Idle|Memory Compression
This measure should return data related to the process with the highest CPU usage (same way, I have measures for the first five processes). The problem is that the value returned by this measure is far away from the one shown in the Task Manager:
Captură de ecran 2024-12-20 215259.png
This difference is all the time there.
I tried rewriting the measure, to get the CPU usage of a specific process (of Rainmeter obviously, but this is not so important I think). I got the following measure:

Code:

[MeasureCPUProcess]Measure=PluginPlugin=UsageMonitorCategory=ProcessCounter=% Processor TimeName=Rainmeter
The value returned by this measure is this time much higher than the one seen in the Task Manager:
Captură de ecran 2024-12-20 220142.png
My question is if there is any way to get a better value, one matching much better the one get in Task Manager?

Thank for any advice.

Statistics: Posted by balala — Yesterday, 8:12 pm — Replies 15 — Views 172



Viewing all articles
Browse latest Browse all 482

Trending Articles