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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user