ispiro
ispiro

Reputation: 27713

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?

Upvotes: 5

Views: 1236

Answers (1)

owen gerig
owen gerig

Reputation: 6172

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

Upvotes: 1

Related Questions