Collect system resource information

2

I'm using S.O. windows, and C # programming language.

How to collect system resource information in C #? processing, memory, disk. I am doing performance testing with multiple clients and a server using sockets, and I want the server to show me how much memory, processing, disk it is using with different amounts of clients communicating with it, is there any way to get this information via code?

    
asked by anonymous 19.03.2014 / 19:19

2 answers

2

There is a class specific to this type of performance measurement: PerformanceCounter (System.Diagnostics) - Msdn - PerformanceCouter Class

    
19.03.2014 / 20:10
2

I am a fan of the least effort, so I try to use what is already ready and available. Collection library:
Performance Counter Helper
Tools:
PerfView - PerfView is a performance-analysis tool that helps isolate CPU- and memory-related performance issues. Home Review information:
Chapter 13 - Detecting Processor Bottlenecks
Interpreting CPU Utilization for Performance Analysis >

    
20.03.2014 / 03:26