Katushai Katushai - 1 year ago 71
iOS Question

How to calculate iOS app boot time

I was wondering if there is a quick and efficient way to determine the Time from opening an app to when it's fully loaded.

  • I was thinking I'd do something like get an
    object in
    and get another in my
    , then compare them.

  • However, I'm not sure that would be completely accurate. Is there a better way to do this?

Answer Source

That really won't work because it doesn't deal with iOS loading and launching your app.

The best you should do is log a timestamp in main but again, this won't include the time it takes iOS to load and launch the app to the point that main is called.

Any timing you do will be from that point forward which may still be useful depending on your goal.