Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Significantly reduced a time of lldb initialization when ios-deploy is used without --justlaunch flag #265

Merged
merged 4 commits into from
Jan 26, 2017

Conversation

black-square
Copy link

The problem looked like a stuck after (lldb) autoexit message in the log.
Before that fix, I had 10-second delay for iPhone 6s and 40 seconds delay (sometimes much longer) for iPad 4. Now the time is comparable to the time of running the game from XCode.
The problem was related to a lack of target modules search-paths add ... command which drastically reduces the time of a modules' loading. XCode uses exactly the same lldb command with the same arguments.

…Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0/Symbols`)

Also, removed a code duplication
…s used without `--justlaunch` flag

The problem looked like a stuck after `(lldb)     autoexit` message in the log.
Before that fix I had 10 second delay for iPhone 6s and 40 seconds delay (sometimes much longer) for iPad 4. Now the time is comparable to the time of running the game from XCode.
The problem was related with a lack of `target modules search-paths add ...` command which drastically reduces the time of a modules' loading. XCode uses exactly the same lldb command with the same arguments.
…n't be found because of incorrect usage of `find` command. Also, this function checks more path variations now
…t location.

Added an execution time logging for `copy_xcode_path_for` function. (We have a buggy server which sometimes gets stuck there)
@black-square
Copy link
Author

Hi @shazron,

Thank you for your hard work on ios-deploy all these years. You really helped us a lot.

You could probably worry that this patch has quite a few changes, but on the other hand, It makes ios-deploy to behave closer to XCode, fixes problems with searching device_support_path and, of course, makes ios-deploy running faster. We have ios-deploy with these changes constantly running by our server for a month without any problems (we had 3 iOS updates since then).
I don't really want to have our own version of ios-deploy and will willingly address all your concerns to make these changes merged into the master branch.

@shazron shazron added this to the 1.9.1 milestone Jan 26, 2017
@shazron shazron merged commit 85a8fe1 into ios-control:master Jan 26, 2017
@black-square black-square deleted the slow_lldb_start2 branch July 28, 2017 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants