09 2021 档案

摘要:WPF使用PerformanceCounter实现简单的性能检测器 PerformanceCounter 可以参考我之前的文章:C#使用PerformanceCounter获取CPU和内存利用率。 WPF界面 <Window x:Class="WpfUsage.MainWindow" xmlns=" 阅读全文
posted @ 2021-09-25 13:51 TruthHell 阅读(351) 评论(0) 推荐(0) 编辑
摘要:关于PowerShell错误处理的一些坑 测试代码: Write-Host '**********test ErrorActionPreference when run commands**********' $ErrorActionPreference = 'Continue' Write-Hos 阅读全文
posted @ 2021-09-24 21:51 TruthHell 阅读(1665) 评论(0) 推荐(0) 编辑
摘要:C#使用PerformanceCounter获取CPU和内存利用率 PerformanceCounter PerformanceCounter表示Windows NT性能计数器组件,位于System.Diagnostics。 最常用的PerformanceCounter的构造函数:public Pe 阅读全文
posted @ 2021-09-11 15:17 TruthHell 阅读(8075) 评论(0) 推荐(3) 编辑

点击右上角即可分享
微信分享提示