iPhone app launch time, lifecycle question

前端 未结 4 530
别跟我提以往
别跟我提以往 2021-01-16 10:35

I\'m trying come up with a method to determine how long after the user taps the app icon it takes for the app to be ready for user input.

As far as I know, the first

4条回答
  •  北恋
    北恋 (楼主)
    2021-01-16 11:34

    I'm guessing that you're seeing this delay when running your application via Xcode. Xcode has to set up a few things behind the scenes to grab console output, etc., which induces an initial delay on startup.

    My recommendation is to perform your application startup timings (from main() to -applicationDidFinishLaunching:) by launching the application manually on the device. Do this a few times to account for initial load artifacts. If you log your results to the console, you can then grab them using the Xcode organizer. I've seen much shorter startup timings when testing my applications this way.

提交回复
热议问题