Retrieve process network usage

前端 未结 3 1754
孤街浪徒
孤街浪徒 2020-12-02 13:35

How can I get a process send/receive bytes? the preferred way is doing it with C#.

I\'ve searched this a lot and I didn\'t find any simple solution for this. Some so

3条回答
  •  不思量自难忘°
    2020-12-02 14:13

    Have a look at the IP Helper API. There is an implementation in C# by Simon Mourier that sums transferred bytes per process: https://stackoverflow.com/a/25650933/385513

    It would be interesting to know how this compares with Event Tracing for Windows (ETW)...

提交回复
热议问题