Don't ask to ask, just ask | |
PerlMonks |
Re: Bandwidth Usageby clintp (Curate) |
on Sep 21, 2001 at 21:08 UTC ( [id://113937]=note: print w/replies, xml ) | Need Help?? |
We did something similar here but not for bandwidth usage. It might prove helpful. We took a filehandle and did a tie() on it, and selected it as the default output filehandle.
Using something like this you could count the bytes that go by unobtrusively and then when the object is destroyed (the program ends), put the data out to a logfile somewhere..
In Section
Seekers of Perl Wisdom
|
|