Do not list adb devices when a device id is given
authorEmre Kultursay <emrekultursay@google.com>
Fri, 29 May 2020 09:18:26 +0000 (11:18 +0200)
committerPavel Labath <pavel@labath.sk>
Fri, 29 May 2020 09:36:11 +0000 (11:36 +0200)
commit7ff2de4f0c60c5d13880440e85ef8edc78482a2f
tree97e49516777d3b15f1485c48eb3aad9a0ccaeb92
parent2c22c1473569352efa9326aa165cc451d39da015
Do not list adb devices when a device id is given

Summary:
On Android, this method gets called twice: first when establishing
a host-server connection, then when attaching to a process id.

Each call takes several seconds to finish (especially slower on Windows)
and eliminating the call for the typical case improves latency significantly.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D79586
lldb/source/Plugins/Platform/Android/AdbClient.cpp
lldb/unittests/Platform/Android/AdbClientTest.cpp [new file with mode: 0644]
lldb/unittests/Platform/Android/CMakeLists.txt [new file with mode: 0644]
lldb/unittests/Platform/CMakeLists.txt