I am trying to investigate a very long startup time for my application and can use some help. It takes about 6-7 seconds to start, and it takes too long. I do not download any datasets or anything else, but the application is a calculator, so my xib has a lot of buttons and button images.
I would like to use the Tools (or something else) to analyze where all the time is spent so that I can optimize, but the documentation for the Tools does not really give me details on how to use it for this particular problem and / or how to interpret the results.
Do you have any suggestions for testing? A pointer to a guide to using tools for this? ITunes U video or something else?
Any suggestions are welcome!
Kenny
Before making any of the above suggestions:
Is this 6-7 seconds while working with Xcode? Or from launching directly by tapping it on the iPhone?
Debuggers and tools will not help you, because they simply add to overhead and do not help in profiling, because it poisons the data that you see.
Edit:
In terms of profiling tools, you can look at using Shark: http://www.switchonthecode.com/tutorials/using-shark-to-performance-tune-your-iphone-app
It is quite simple to use as a whole. This is self-evident.
, ... , , , , .
- , . , , , , Paul, 0 , 1 . 3 , .
, --. ( , ).
100 ( ) 15, , . 50 , , Shift, , . , , , . , "" xib, , xib.
, , , ( , , ), , . , , , , 2 , ... , , , .
:
I would measure the startup time of an empty dummy application (possibly an application template based on Xcode Window) on your actual device (a disabled debugger). Then start adding initialization code, views, and objects from your application to this dummy application until you find it that slows down the startup time.
Source: https://habr.com/ru/post/1775913/More articles:What exactly does TFS build quality change do exactly? - tfsA way to get the return type of a method in Objective-C? - iosUsing QtPropertyBrowser as an Advanced Configuration Editor - user-interfaceForeign key as TPH discriminator in EF4 using CTP4 code First - inheritanceError returning Facebook Credits demo application - javascriptHow to determine the topmost object in a 2D projection of a 3D object? - algorithmAndroid Phone EditText does not update display on device - androidListening to CocoaASyncSocket on an iPhone receiving a connection, but the new socket does not call a delegate - iphonehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1775917/does-nsuserdefault-take-a-few-seconds-to-register-the-values-i-pass-it&usg=ALkJrhiKszfLqGIlqq5EtUeuLQJLP4wh6QDynamically add to TEMPLATE_DIRS at runtime a Django project - djangoAll Articles