Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get CPU-usage (etc.) with Windows Store Apps

I want to read things like CPU usage, memory usage, etc. Normally, I would do that with a PerformanceCounter. But The assemblies for UWP don’t have that. So how is it done in Windows Universal Apps?

like image 757
ispiro Avatar asked Nov 09 '22 05:11

ispiro


1 Answers

you have to use native calls and pinvoke. see my other post. stilling searching for libraries for cpu usage, but memory usage and cpu info is handled in this post

summarizes both SO post (Microsoft forums)

Basic pinvoke - SO question

Diagnostic stat with pinvoke - SO question

like image 115
owen gerig Avatar answered Nov 14 '22 23:11

owen gerig



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!