获得总体CPU百分比使用率的可能性是什么 [英] What are the possibillities to get overall CPU percentage usage

查看:89
本文介绍了获得总体CPU百分比使用率的可能性是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下问题:

在UWP中,我们如何获得总体CPU使用率,RAM使用率,可用RAM,正在运行的进程等? UWP中的任务管理器需要它。

In UWP, how can we get an overall CPU percentage usage, RAM usage,free RAM, Running process, etc? It's required for task manager in UWP.

推荐答案

看起来很不错,看来您可以获得设备的CPU,RAM和Free Ram或正在运行的进程。
您可以获取应用程序的CPU,内存以及内存限制。

Hi after doing some looking it doesn't seem as if you can get the device CPU, RAM and Free Ram or the Running Processes. You can get the CPU, memory as well as the memory limits for an application.

您可以通过以下方式获得这些信息:

You can get these through the following ways:

RAM
可通过 MemoryManager类 访问p>

RAM: This is accessed through the MemoryManager Class

MemoryManager.AppMemoryUsage 

还有其他一些静态成员可以为您提供帮助。

And there are some other static members that will help you.

CPU :至于CPU,使用- Windows.System.Diagnostics.ProcessCpuUsage

CPU: As for CPU this is retrieved using - Windows.System.Diagnostics.ProcessCpuUsage 

这篇关于获得总体CPU百分比使用率的可能性是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆