Windows 10: Performance monitor counter values VS System.Diagnostics.PerformanceCounter.NextValue C#

Discus and support Performance monitor counter values VS System.Diagnostics.PerformanceCounter.NextValue C# in Windows 10 Gaming to solve the problem; Hi,I'm collecting data using System.Diagnostics.PerformanceCounter in a C# program. I made a test where I compared values from performance monitor with... Discussion in 'Windows 10 Gaming' started by NicolasGV, Jan 11, 2022.

  1. NicolasGV Win User

    Performance monitor counter values VS System.Diagnostics.PerformanceCounter.NextValue C#


    Hi,I'm collecting data using System.Diagnostics.PerformanceCounter in a C# program. I made a test where I compared values from performance monitor with the one I got from my program. I can see the values look shifted. For example I put a screenshot hereafter,I can't figure if I should multiply or divide the values. Since I'm not just monitoring memory values, I need to know for any counter if there is some math with the value to do, otherwise I can't interpret values that come from Performance monitor, nor System.Diagnostic.There is any documentation about that ? otherwise how can I figure tha

    :)
     
    NicolasGV, Jan 11, 2022
    #1

  2. Do we need an Administrator Privileges to access Performance Counters?

    Hi experts,

    Recently, I tried to use PerformanceCounter to query some counters of the system.

    PerformanceCounter Constructor (System.Diagnostics) | Microsoft Docs

    My confusing is, in the document, it seems we need an administrative Privilege.

    Actually, i can run the binary and get correct results(cpu, memory), but if the binary is started by a user without administrative Privilege, we will get PerfLib1008 and PerNet 2004 error in event log. Even I the user is already added into the "Performance
    Monitor" group.



    Thanks.
     
    Zephyr Zhang, Jan 11, 2022
    #2
  3. Unselectable and Disappearing Counters in Performance Monitor / Perfmon.exe

    Computer: Dell Latitude 7480

    Program: Perfmon.exe (32 bit and 64 bit)

    OS: Windows 7, Widows 10

    I am trying to add counters for USB in Performance Monitor. I want to do something similar to this:


    In the screen-shot, I use % total bandwidth used for Interrupt as an example, but this applies to any counter with a grayed out/ unselectable
    <All instances> instance.

    When add >> is selected it seems to add the counter, but once you select
    OK, the counter disappears. It does not show up in Perfmon and does not show up in
    Properties -> Data. It's almost as if I never added it.

    I have quite a few internal and external USB hubs, and USB devices on this computer, so I'm not sure why there are no instances to select. Maybe that is a clue? Is there something I have to enable first?

    There isn't good documentation describing what the grayed out <All instances> means, can anyone please explain? Even if it is alone in the list,
    <All instances> is sometimes gray and sometimes not. For me,
    Thread
    counters only have <All instances> but it is not grayed out, while the
    USB counters have <All instances> but are grayed out. Also not sure what is different between a blank
    Instances of selected object: list and a grayed out out Instances of selected object:
    list is.

    Additionally, can anyone help me monitor/ enable the USB counters?

    Thank you in advance!


    Performance monitor counter values VS System.Diagnostics.PerformanceCounter.NextValue C# 0c26fb15-372b-409b-9fbf-b25b419fc452?upload=true.png
     
    James.Light, Jan 11, 2022
    #3
  4. Performance monitor counter values VS System.Diagnostics.PerformanceCounter.NextValue C#

    WMI counter provide incorrect value

    We have found a problem with some WMI raw performance data counters on Windows server 2016 and
    Windows 2003 SP2. We found that some counters decrement or Timestamp_Sys100NS not change with previous collection, so
    each recollection has a lower value that the previous value instead of getting bigger so this renders the calculations done after the recollection useless.
    For example, this happens in Win32_PerfRawData_PerfOS_
     
    JinJiangHuang, Jan 11, 2022
    #4
Thema:

Performance monitor counter values VS System.Diagnostics.PerformanceCounter.NextValue C#

Loading...
  1. Performance monitor counter values VS System.Diagnostics.PerformanceCounter.NextValue C# - Similar Threads - Performance monitor counter

  2. Performance Monitor Win10 : System Diagnostics report is just the same as System...

    in Windows 10 Gaming
    Performance Monitor Win10 : System Diagnostics report is just the same as System...: Using Windows 10 Home 64bit, version 10.0.19045.4046At admin prompt, start Performance Monitor with "perfmon"Select "Data Collector Sets : System : System Diagnostics"Select "Start", wait a couple of minutes for it to completeSelect "Latest Report". An item appears under...
  3. Performance Monitor Win10 : System Diagnostics report is just the same as System...

    in Windows 10 Software and Apps
    Performance Monitor Win10 : System Diagnostics report is just the same as System...: Using Windows 10 Home 64bit, version 10.0.19045.4046At admin prompt, start Performance Monitor with "perfmon"Select "Data Collector Sets : System : System Diagnostics"Select "Start", wait a couple of minutes for it to completeSelect "Latest Report". An item appears under...
  4. Performance Monitor Win10 : System Diagnostics report is just the same as System...

    in Windows 10 BSOD Crashes and Debugging
    Performance Monitor Win10 : System Diagnostics report is just the same as System...: Using Windows 10 Home 64bit, version 10.0.19045.4046At admin prompt, start Performance Monitor with "perfmon"Select "Data Collector Sets : System : System Diagnostics"Select "Start", wait a couple of minutes for it to completeSelect "Latest Report". An item appears under...
  5. Driver for "Performance Counters"

    in Windows 10 Gaming
    Driver for "Performance Counters": In Device Manager there are yellow triangles on "Performance Counters". It says there is no driver for these "Performance Counters". Microsoft Support said to delete these and then restart the computer, but that did not help. I cannot get anything to print from this computer...
  6. Driver for "Performance Counters"

    in Windows 10 Software and Apps
    Driver for "Performance Counters": In Device Manager there are yellow triangles on "Performance Counters". It says there is no driver for these "Performance Counters". Microsoft Support said to delete these and then restart the computer, but that did not help. I cannot get anything to print from this computer...
  7. Driver for "Performance Counters"

    in Windows 10 Drivers and Hardware
    Driver for "Performance Counters": In Device Manager there are yellow triangles on "Performance Counters". It says there is no driver for these "Performance Counters". Microsoft Support said to delete these and then restart the computer, but that did not help. I cannot get anything to print from this computer...
  8. Performance monitor counter values VS System.Diagnostics.PerformanceCounter.NextValue C#

    in Windows 10 Software and Apps
    Performance monitor counter values VS System.Diagnostics.PerformanceCounter.NextValue C#: Hi,I'm collecting data using System.Diagnostics.PerformanceCounter in a C# program. I made a test where I compared values from performance monitor with the one I got from my program. I can see the values look shifted. For example I put a screenshot hereafter,I can't figure if...
  9. Performance monitor counter values VS System.Diagnostics.PerformanceCounter.NextValue C#

    in Windows 10 BSOD Crashes and Debugging
    Performance monitor counter values VS System.Diagnostics.PerformanceCounter.NextValue C#: Hi,I'm collecting data using System.Diagnostics.PerformanceCounter in a C# program. I made a test where I compared values from performance monitor with the one I got from my program. I can see the values look shifted. For example I put a screenshot hereafter,I can't figure if...
  10. Performance Counters

    in Windows 10 Drivers and Hardware
    Performance Counters: I installed the 10900X on the X299, and now these Performance Counter things need drivers, I`ve always had the latest Chipset drivers, doesn`t help. I`ve been Googling it but finding nothing that will help. And this Logitech item, Both the Logitech G910 Orion Spark keyboard...