Performance Loading App

In the App we saw a 4 seconds loading time while launching the App. Sometimes this time up to 8 seconds but the average time is 4 seconds. What could be the reason?

  • In the AppDelegate there isn't server calls.
  • The breakpoint inside the AppDelegate function didFinishLaunchingWithOptions is taking 4 seconds to get in.
  • I have some api calls but they are launched after the breakpoint in the AppDelegate.
  • The Api calls responses are working faster.
  • In Instruments I have some blocked time, is it normal?

  • Is something wrong in the log?

Hi bicho, did you try the "App Launch" template? If not, I recommend to try profiling your app again using the "App Launch" template. It should give you two things:

  • On your process' track, there should be a lane "App Lifecycle" and it should draw intervals for the different "Initialization" and "Launching" steps. From what you describe, it sounds like your app spends most of it's time before it even gets to your app's code. This view should give you an idea which parts took long.
  • It also adds the "Static Initializer Calls" instrument. This will show you if any of your libraries have a lot of or maybe long-running static initializer calls.

It's likely that one of the two will be able to show you what's taking so long and then you can investigate why that is and how to fix it.

Thank you for your response @JoachimKurz, in the lane App Lifecycle, there is no data. I only see the Lifecycle selecting the main process.

Performance Loading App
 
 
Q