diff --git a/caliper-runner/src/main/java/com/google/caliper/runner/target/AdbDevice.java b/caliper-runner/src/main/java/com/google/caliper/runner/target/AdbDevice.java index 4e30a072..a7b0e386 100644 --- a/caliper-runner/src/main/java/com/google/caliper/runner/target/AdbDevice.java +++ b/caliper-runner/src/main/java/com/google/caliper/runner/target/AdbDevice.java @@ -143,6 +143,7 @@ protected void startUp() throws Exception { "com.google.caliper.proxy_id", proxyConnection.proxyId().toString())); + stdout.println("waiting for proxy on port " + port); try { proxyConnection.startAsync().awaitRunning(30, SECONDS); } catch (TimeoutException e) { @@ -191,6 +192,7 @@ private void checkDeviceApiLevel(int apiLevel) { * computer. */ private void setReversePortForwarding() { + stdout.println("adb: reverse forwarding port " + port); String tcpPort = "tcp:" + port; shell.execute(adbCommand("reverse", tcpPort, tcpPort)).orThrow(); } @@ -230,7 +232,6 @@ private void forceStop(String packageName) { * activity. */ private void startActivity(String intent, Map extras) { - stdout.println("adb: starting proxy activity"); ImmutableList.Builder builder = ImmutableList.builder() .add("shell") @@ -241,7 +242,9 @@ private void startActivity(String intent, Map extras) { for (Map.Entry entry : extras.entrySet()) { builder.add("-e", entry.getKey(), entry.getValue()); } - shell.execute(adbCommand(builder.build())).orThrow("failed to start activity"); + ImmutableList args = builder.build(); + stdout.println("adb: starting proxy activity: " + String.join(" ", args)); + shell.execute(adbCommand(args)).orThrow("failed to start activity"); } private File getWorkerApk() {