- Extract sync commands like push/pull file and stat into SyncService so ADB connection that's switched in sync mode can be reused for multiple sync commands. Improves a few aspects:
- No ADB re-connection on every file push/pull
- host:transport: and sync commands are called only once per connection.
- No ADB re-connection on every file push/pull
- Reuse the same ADB connection for all shell commands fired by PlatformAndroid. Improves following aspects:
- No ADB re-connection on every shell command
- host:transport: is called only once per connection.
- No ADB re-connection on every shell command
Details
Details
- Reviewers
tberghammer labath
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Is AdbClient getting big enough to deserve a couple of unit tests? All it would take is to add the ability to specify the address to connect to and make a small mock server that listens at that address?
Comment Actions
It makes sense to do - presumably it might be a non-trivial change but worth doing as a long-term investment.
Comment Actions
If you okay with that I'd like to submit this CL as-is and come up with unit test with a separate change list.
Comment Actions
Files:
/lldb/trunk/source/Plugins/Platform/Android/AdbClient.cpp /lldb/trunk/source/Plugins/Platform/Android/AdbClient.h /lldb/trunk/source/Plugins/Platform/Android/PlatformAndroid.cpp /lldb/trunk/source/Plugins/Platform/Android/PlatformAndroid.h /lldb/trunk/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp
Users:
ovyalov (Author)