Skip to content

litt1e-p/LPFPS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LPFPS

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

Installation

  • for < swift 3 pod 'LPFPS', '~> 0.0.2'

  • for = swift 3 pod 'LPFPS', '~> 1.0.0'

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published