Measuring bytes of packet sent from python application
aixer77 at gmail.com
Mon Jan 5 23:26:06 CET 2009
I'd like to measure number of bytes sent(or recv'd) from my python
application. Does anyone have any idea how can I achieve this?
I tried to do this by tracing some socket calls (send, sendto, sendAll)
using 'metaclass' but I could find exactly place that I can put this in.
My application runs some number of protocols (bittorrent, xmlrpc ..) in
it and will be measured for a couple of hours.
Thanks a lot for your help, in advance
More information about the Python-list