Print art and openjdk processes running when timeout handler hits
Change-Id: Icc5485f1fda42f4cfe6b6b3a63165b721f95ff8e
diff --git a/tools/test.py b/tools/test.py
index 4a5d79c..7235b6e 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -460,7 +460,10 @@
def print_jstacks():
processes = subprocess.check_output(['ps', 'aux'])
for l in processes.splitlines():
+ if 'art' in l or 'dalvik' in l:
+ print('Running art of dalvik process: \n%s' % l)
if 'java' in l and 'openjdk' in l:
+ print('Running jstack on process: \n%s' % l)
# Example line:
# ricow 184313 2.6 0.0 36839068 31808 ? Sl 09:53 0:00 /us..
columns = l.split()