如何执行多线程应用程序的性能。 [英] How to execute Performance of Multithreaded application .

查看:102
本文介绍了如何执行多线程应用程序的性能。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,



我正在测试多线程应用程序让我们说使用10个线程执行n个配置文件的应用程序,我需要验证它的性能。



我正在计算它的进程内存/句柄数/线程但我还要计算它同时支持10个线程的配置文件数量。



有些人将我重定向到一些工具或链接,在那里我可以找到我的答案



简而言之我能监控资源利用率但不能前两个。



1响应时间或延迟

2吞吐量

3资源利用率








非常感谢提前..

Hello friends ,

I was testing multithreaded application lets say a application using 10 thread to execute n number of profiles , and i need to validate its performance.

I am calculating its Process Memory/Handle count/Thread But i also want to calculate how many profile it concurrently support with 10 threads .

Some body redirect me to some tool or link where i can find my answer

In Short i am able to monitor Resource Utilization but not first two .

1 Response time or latency
2 Throughput
3 Resource utilization




Many thanks in advance..

推荐答案




您所描述的场景与PerformanceCounters的使用完全吻合。



您可以创建自己的自定义性能计数器并监控其行为m PerfMon。



您可以使用计数器包装相关的业务代码 - 例如avarage响应时间,吞吐量/秒等。



我在CodeProject找到了一篇关于自定义性能计数器的好文章:

使用自定义属性创建性能计数器 [ ^ ]



您可以找到更多网上的例子。



HTH,

Ofir。
Hi
The scenario that you are describing fits exactly to the use of PerformanceCounters.

You can create your own custom performance counters and monitor their behavior from PerfMon.

You can wrap your relevant business code with counters - such as avarage response time, throughput/sec etc..

I''ve found a nice article about Custom Performance Counters here in CodeProject:
Using Custom Attributes to Create Performance Counters[^]

You can find a lot more examples on the web.

HTH,
Ofir.


这篇关于如何执行多线程应用程序的性能。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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