LPFPS 1.0.0

LPFPS 1.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2016
SPMSupports SPM

Maintained by litt1e-p.



LPFPS 1.0.0

  • By
  • litt1e-p

LPFPS

iOS App FPS tracer and monitor that works in even different rootViewControllers

Installation

pod 'LPFPS', '~> 0.0.2'

Usage

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
  /* initial your window
  window = UIWindow(frame: UIScreen.mainScreen().bounds)
  window?.rootViewController = yourRootViewController()
  window?.makeKeyAndVisible()
  */
  //start FPS 
  let kFPSIns = LPFPS.sharedFPS
  #if DEBUG
    kFPSIns.start()
  //#else
    //kFPSIns.stop()
  #endif
  return true
}

if you don’t know how to define a DEBUG flag in Swift, this post will may do help

Screenshot

Release notes

  • 0.0.2

make class var public

  • 0.0.1

origin version.