- Measure network throughput of <your favorite dipshit 3rd party app>
- Report traffic over granularity periods
- C99, _GNU_SOURCE
- Using libpcap in main thread to capture packets (also filtering, etc)
- Piping info into another thread (simple pthread usage) that does the math
- When emitting all the info I read from the pipe to stdout, the average packet count is 2700..3000 packet/s
- When only the per GP statistics, the packet capture drops to 3-11 packet/s
[few days had passed]
Turned out, if I print all the info, of course it captures more tcp traffic, as I'm over an SSH connection! I'm generating that traffic!!!111one
/me idiot
Don't do Java, kids. It's bad for your brains.
No comments :
Post a Comment