How can I measure network traffic?
For example as Download Meter app does. Can I track packages dispatched? Does iOS a traffic tracking system that I c开发者_开发问答an poll somewhere?
In XCode -> Run with Performance Tool -> Select Activity Monitor -> Open Library and add Network Activity Tool. Remember it will capture ALL network activities from your phone, not just your app's traffic. You will need to determine "white noise" traffic subtract from overall sampling. Good luck.
vnstat
under Linux.
There's a nice graphical representation for it, made with rrdtool.
Edit
Sorry, didn't see it's for iPad. please clarify your machine and OS next time...
精彩评论