On 2009-01-05, Jonathan Gardner <jgard...@jonathangardner.net> wrote: > On Jan 5, 2:26 pm, Kangkook Jee <aixe...@gmail.com> wrote: >> >> 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. > > A good universal tool on the Linux platform is tcpdump. It takes some > learning, but is very useful for this kind of task. You can use a tool > like ethereal to visualize the data that tcpdump gathers.
Ethereal has been called wireshark for quite a while now. It can be used to capture the traffic as well as to visualize it. Wireshark is available for both Linux and Windows. -- Grant -- http://mail.python.org/mailman/listinfo/python-list