Temporary hack: Print extra process info on test timeout.

Attempt to figure out what is happening on the buildbots.

Bug: 142039427
Test: Test the code path locally with very low timeout.
Change-Id: I96dd7df11241196a82fa26b4f8b19133176b712c
diff --git a/test/testrunner/testrunner.py b/test/testrunner/testrunner.py
index 97b5673..bb11862 100755
--- a/test/testrunner/testrunner.py
+++ b/test/testrunner/testrunner.py
@@ -605,6 +605,13 @@
         for pid in pidof.stdout.decode("ascii").split():
           print_text("Backtrace of %s at %s\n" % (pid, time.monotonic()))
           subprocess.run(["adb", "shell", "debuggerd", pid])
+          task_dir = "/proc/%s/task" % pid
+          tids = subprocess.run(["adb", "shell", "ls", task_dir], stdout=subprocess.PIPE)
+          for tid in tids.stdout.decode("ascii").split():
+            for status in ["stat", "status"]:
+              filename = "%s/%s/%s" % (task_dir, tid, status)
+              print_text("Content of %s\n" % (filename))
+              subprocess.run(["adb", "shell", "cat", filename])
         time.sleep(60)
 
     # The python documentation states that it is necessary to actually kill the process.