-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how can I get the CPU usage in percent of my app ? #31921
Comments
Do you want to use them programatically? Or just see them?
Or have you tried this and still get no information back? What version of the dotnet runtime are you using in this case? |
There are also programmatic options using properties on System.Diagnostics.Process. https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.totalprocessortime?view=netcore-3.1 |
@hoyosjs
The |
@John0King You can use
|
I want to get the CPU and Memory usage of my app in .net core, for .net framework , I can use
PerformanceCounter
class, I have read a few docs about theEventCounter
class , but it seems not able to get the info from it.The text was updated successfully, but these errors were encountered: