krezzoid / mainThreadPinger

tool to ping main/ui thread to measure 400msec or longer delays (based on Viber’s presentation and code at NSSpain)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mainThreadPinger

codebeat badge

Usage

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

//
// some of your code here ...
//

// will create mainThreadPinger object and start pinging main/ui thread
let pinger = mainThreadPinger.sharedInstance

return true
}

About

tool to ping main/ui thread to measure 400msec or longer delays (based on Viber’s presentation and code at NSSpain)


Languages

Language:Swift 100.0%