leandrosa81 / taskbar-monitor

monitoring tool with graphs (CPU, memory, disk and network) for Windows taskbar.
https://lugarinho.tech/tools/taskbar-monitor
GNU General Public License v3.0
279 stars 24 forks source link

CPU meter accuracy? #24

Closed MM102 closed 1 year ago

MM102 commented 2 years ago

cpu

I understand that acurately tracking cpu usage is hard/impossible, but I was wondering if you knew why there was such a big discrepancy between this and other apps. More importantly the discrepancy between the percent shown and the bar graph behind it.

Processor information: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 2592 Mhz, 6 Core(s), 12 Logical Processor(s)

KoalaBear84 commented 2 years ago

It is not easy indeed. Also depends on the interval of the polling of the data.

But I do see that there is a difference in it. Never really checked it out.

leandrosa81 commented 2 years ago

I will investigate this issue, maybe it has something to do with issue #20 . Here it seems fine (eg: CPU at 19%): image laptop specs: Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz 2.11 GHz, 4 Core(s), 8 Logical Processor(s)

70legne commented 2 years ago

Maybe the bar just shows a single cpu?

Taskbar-cpu-1
leandrosa81 commented 2 years ago

I am working on this issue, should be fixed on the next release.

jesusha123 commented 2 years ago

You might already have seen this post: https://stackoverflow.com/a/63732722

The author of this answer mentions you should use Processor Information/%Processor Utility/_Total to match the task manager.

 cpuCounter = new PerformanceCounter(
            "Processor Information",
            "% Processor Utility",
            "_Total",
            true
        );