GithubHelp home page GithubHelp logo

aduir / networktracker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lilidan/networktracker

0.0 0.0 0.0 883 KB

An iOS library for network tracking.It can be used to evaluate performance or capture packets.

C 3.86% Objective-C 90.89% HTML 5.25%

networktracker's Introduction

NetworkTracker

实现原理

An iOS library for network tracking.It can be used to evaluate performance or capture packets.

Supports HTTP/WebView/TCP.

Dependency

Fishhook

AAChartKit(Used for sample project)

Compatibility

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

performance

HTTP

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.

WebView

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.

Installation

Drag and use.

目前的问题

部分数据根据部分机型和SDK会导致无法收集完全。 DNSTracker.m可能会导致崩溃,该类可以完全注释掉不影响使用

精力有限停止维护

networktracker's People

Contributors

lilidan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.