I want to know how much network traffic is consumed by each process.
I would prefer for a crossplatform solution but I guess this is not possible, so I am searching for a solution which works on MacOSX right now.
The solution should be lightweight. I want to run it in background and it should analyse all running processes.
(Stupid disclaimer: As I am asking on Stackoverflow, I am implying by that that I am asking for programmatically solutions here. The same question on Superuser means something different.)