如何获取任务管理器的“性能”标签值? [英] How to fetch task manager "performance" tab values?

查看:140
本文介绍了如何获取任务管理器的“性能”标签值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我想从任务管理器的性能选项卡中获取属性值,如CPU使用率,内存,物理内存,系统内存和c#中的系统属性。



请帮帮我



TIA



我尝试了什么:



i尝试谷歌解决方案,但无法找到任何解决方案。

Hi all,

I want to fetch the property values from task manager's performance tabs like CPU usage,Memory ,Physical memory,system memory and system properties in c#.

Please help me

TIA

What I have tried:

i tried google for solution but not able to find any solution.

推荐答案

您可以使用PerformanceCounter类从Performance Counters获取该数据。开始阅读它们 here [ ^ ]。



请记住,柜台有两面。您的应用既可以读取性能计数器,也可以使用它们发布数据。有时,您阅读的文档并不能完全清楚并且可能令人困惑。
You can get that data from the Performance Counters using the PerformanceCounter class. Start reading up on them here[^].

Keep in mind that there are two sides to the counters. Your app can both read performance counters and publish data using them too. Sometimes, documentation you read doesn't exactly make that clear and can be confusing.


这篇关于如何获取任务管理器的“性能”标签值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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