Parallelize run_on_app_dump.py
Bug: b/297302759
Change-Id: I4d14ab3b4001ad37823446069e7c8eb335b635ad
diff --git a/tools/utils.py b/tools/utils.py
index 9e9e831..c737776 100644
--- a/tools/utils.py
+++ b/tools/utils.py
@@ -592,10 +592,11 @@
print('{}-{}(CodeSize): {}'
.format(prefix, segment_name, size))
-def print_dexsegments(prefix, dex_files):
+def print_dexsegments(prefix, dex_files, worker_id=None):
for segment_name, size in getDexSegmentSizes(dex_files).items():
- print('{}-{}(CodeSize): {}'
- .format(prefix, segment_name, size))
+ print_thread(
+ '{}-{}(CodeSize): {}'.format(prefix, segment_name, size),
+ worker_id)
# Ensure that we are not benchmarking with a google jvm.
def check_java_version():