I am trying to learn how to monitor the network bandwidth usage of a specific application. I am looking at IPv4InterfaceStatistics
, but that seems to monitor an NIC card's performance.
I'd like to monitor a specific application to see how much bandwidth is consumed every second.
Does anyone know of an example of how this can be done?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
If you are familiar with the OSI model http://en.wikipedia.org/wiki/OSI_model you see that you try to interact with layer 3 where you should be interacting with layer 7.
I your connection with what ever class you are using you are able to measure bytes sent, specially if you are transporting the individual bytes, (this is since i have no idea how your code is looking), you should be able to calculate the amount of bytes over a time divide with number of seconds and you will have your result.