Network Usage Statistics

Is there any way to access the network usage from a networked Unity application?

For example, the # of packets sent/received each send interval, the total size of the packets, etc. Without this information, it’s hard to debug and optimize a networked app. Ideally, I’d like to create something similar to the Source engine net graph, but it will be impossible to do unless I have access to that basic information.

If not possible from Unity, are there any recommended 3rd party tools for doing this in real-time? I’ve tried Activity Monitor on OS X, but it is not detailed enough to produce good results. Ideally I need something to monitor on a per-frame basis of the application.


Check out wireshark. It’s pretty powerful and will definitely give you the data you need.