iOS app launch time measurement

后端 未结 6 1794
醉梦人生
醉梦人生 2021-02-15 17:19

How can I count the time it takes from the moment the user presses the launch button on the home screen until the moment the app is active (for example, until the viewDidAppear

6条回答
  •  忘了有多久
    2021-02-15 18:19

    Start a timer in willFinishLaunchingWithOptions.....

    Stop the timer in applicationDidBecomeActive, or viewDidAppear of the VC you are trying to profile, and NSLog it.

提交回复
热议问题