客户端性能测试通过performanceCounter监控客户端性能指标
来源:互联网 发布:韫而知之的意思 编辑:程序博客网 时间:2024/05/18 10:22
PerformanceCounter PTCounter = new PerformanceCounter("Process",
"% Processor Time",
"AliIM");
logfile("% Processor Time:" + PTCounter.NextValue().ToString());
//内存
PerformanceCounter WSCounter = new PerformanceCounter("Process",
"Working Set",
"AliIM");
logfile("Working Set:" + ((double)WSCounter.NextValue() / 1024).ToString());
//内存最高值
PerformanceCounter MemeryCounter = new PerformanceCounter("Process",
"Working Set Peak",
"AliIM");
logfile("Working Set Peak:" + ((double)MemeryCounter.NextValue() / 1024).ToString());
//虚拟内存
PerformanceCounter PBCounter = new PerformanceCounter("Process",
"Private Bytes",
"AliIM");
logfile("Private Bytes:" + ((double)PBCounter.NextValue() / 1024).ToString());
//句柄数
PerformanceCounter HCCounter = new PerformanceCounter("Process",
"Handle Count",
"AliIM");
logfile("Handle Count:" + HCCounter.NextValue() .ToString());
//线程数Thread Count
PerformanceCounter TCCounter = new PerformanceCounter("Process",
"Thread Count",
"AliIM");
logfile("Thread Count:" + TCCounter.NextValue() .ToString());
//补充得到GDI OBJECTS
Process process;
process = System.Diagnostics.Process.GetProcessesByName("AliIM")[0];
logfile("GDI Objects Count:" + GetGuiResources(process.Handle, 0));
[DllImport("User32")]
extern public static int GetGuiResources(IntPtr hProcess, int uiFlags);
- 客户端性能测试通过performanceCounter监控客户端性能指标
- 性能-客户端测试(二)
- android客户端性能测试
- android客户端性能测试
- android客户端性能测试
- 利用Windows性能计数器(PerformanceCounter)监控
- 利用Windows性能计数器(PerformanceCounter)监控
- 利用Windows性能计数器(PerformanceCounter)监控
- Web性能测试需监控的IIS性能指标
- android客户端性能测试 (一)
- android客户端性能测试 (一)
- android客户端性能测试工具
- 测试-客户端性能测试(一)
- web性能测试中性能指标
- Web性能测试基本性能指标
- web性能测试基本性能指标
- web性能测试基本性能指标
- web性能测试基本性能指标
- C# 16进制与字符串、字节数组之间的转换
- 初识 ASP.NET 3.5 MVC 开发
- 通过项目学web开发:HTML and ASP 第1天
- 解决窗口闪烁的常用方法
- 用Grub4DOS引导安装Fedora11
- 客户端性能测试通过performanceCounter监控客户端性能指标
- 高度
- MSMQ 测试
- 欧式3d模型免费下载网站推荐
- 唐僧的家书
- JPEG压缩算法
- setevent
- 利用网站再设计提高转换率之七步曲
- DeviceIoControl的使用说明