I have recently found NetHogs, a Linux tool for monitoring traffic per process in B/s. But I am looking for something that logs traffic per process in total B uploaded and downloaded. (Example, today Firefox downloaded 50 MB, UbuntuOne downloaded 10 MB and uploaded 20 MB...)
Does such an application exist?
Ideally the tool would be FOSS and cross-platform, but feel free to mention OS-specific solutions (e.g. NetLimiter on Windows, which does a bunch of extra stuff too) in case they'll help someone else.
The tool should perform per process logging, if it can't do this it isn't a suitable solution. (e.g. Wireshark does not seem to be process-aware)