Make utils/create_reference_dumps.py slightly less slower when -l is specified.

Bug: 64267858

Test: Without this change:
          rm -rf $ANDROID_BUILD_TOP/out; utils/create_reference_dumps.py
	  -l libjpeg -> > 30 minutes
      With this change:
          rm -rf $ANDROID_BUILD_TOP/out; utils/create_reference_dumps.py
	  -l libjpeg -> approx 11.5 minutes

Change-Id: I9c145ed5d8c9a9cc2cb1dc7db9ab9b83843a291e
This commit is contained in:
Jayant Chowdhary
2018-03-29 12:51:44 -07:00
parent 1ebd366d52
commit 3dc4ff3ef0
2 changed files with 48 additions and 29 deletions

View File

@@ -163,14 +163,12 @@ def find_lib_lsdumps(target_arch, target_arch_variant,
target_dir = 'android_' + target_arch + arch_variant +\
cpu_variant + core_or_vendor_shared_str
for path in lsdump_paths:
filename = os.path.basename(path)
name, _ = os.path.splitext(filename)
sofile, _ = os.path.splitext(name)
if target_dir in path:
if libs and sofile not in libs:
continue
arch_lsdump_paths.append(os.path.join(AOSP_DIR, path.strip()))
for key, value in lsdump_paths.items():
if libs and key not in libs:
continue
for path in lsdump_paths[key]:
if target_dir in path:
arch_lsdump_paths.append(os.path.join(AOSP_DIR, path.strip()))
return arch_lsdump_paths
def run_abi_diff(old_test_dump_path, new_test_dump_path, arch, lib_name,