Is there any public API of dotnet team to GetCPUUtilization in both Windows and Linux environment? #79922
Unanswered
dengchaoyue
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all
Recently, when I read dotnet github code, I found a diagnostic method: “GetCpuUsage” in RuntimeEventSourceHelper class.
runtime/RuntimeEventSourceHelper.Unix.cs at 8b1aecb7d89fdd7ff0319aa57001315da3d1a6a4 · dotnet/runtime (github.com)
We want to use it to monitor CPU usage in our program (It is developed based on .net7). But this method is not a public method.
Does dotnet team provide a public API for users to GetCPUUtilization in both windows and Linux environment?
Beta Was this translation helpful? Give feedback.
All reactions