An iOS library for network tracking.It can be used to evaluate performance or capture packets.
Supports HTTP/WebView/TCP.
AAChartKit(Used for sample project)
iOS SDK | NSURLConnetion | NSURLSession | UIWebView | WKWebView | CocoaAyncSocket |
---|---|---|---|---|---|
8.4 | YES | YES | via TCP | via TCP | YES |
9.3 | YES | YES | YES | YES | YES |
10.3 | YES | YES | YES | YES | YES |
11.3 | YES | YES | YES | YES | YES |
NSURLSession library has NSURLSessionTaskMetrics API for those higher than iOS 10.0.
So we can evaluate HTTP network performance by domainLookupTime
or secureConnectionTime
.
For NSURLConnetion or NSURLSession lower than iOS 10.0, we can only use BSD Socket APIs to collect part of data.
Either UIWebView or WKWebView implements Performance.timing
API above iOS 9.
For those lower than iOS 10.0, we also use BSD Socket APIs to collect part of data.
Drag and use.
部分数据根据部分机型和SDK会导致无法收集完全。 DNSTracker.m可能会导致崩溃,该类可以完全注释掉不影响使用
精力有限停止维护