3
Answers

How can i get network usage per process

Armin Dashti

Armin Dashti

7y
263
1

I want to get network usage per process.
I've searched, but didn't find a good solution , for example to get the network usage of a messenger ,is my code is correct?

PerformanceCounter pc = new PerformanceCounter("Process", "IO Read Bytes/sec", "System" ); 
Console.WriteLine(pc.NextValue()); Console.ReadLine(); }

what can i do?

Answers (3)