diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-08-14 00:54:55 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-08-14 00:54:55 +0000 |
commit | b3026994c3d6ee701e2f04f7919591c5edc50035 (patch) | |
tree | 86ec0edaf42775d06d55a526439876eac4b45d07 | |
parent | c051e742978ff17db4f1eb283c9db2359404b5b3 (diff) | |
parent | 19363a2d182cff9e747dfe51148990d12cf6b654 (diff) | |
download | extras-b3026994c3d6ee701e2f04f7919591c5edc50035.tar.gz |
Merge "simpleperf: don't pull JIT symfiles on host."
-rwxr-xr-x | simpleperf/scripts/binary_cache_builder.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/simpleperf/scripts/binary_cache_builder.py b/simpleperf/scripts/binary_cache_builder.py index b5a53da9..1f4041f8 100755 --- a/simpleperf/scripts/binary_cache_builder.py +++ b/simpleperf/scripts/binary_cache_builder.py @@ -28,6 +28,8 @@ import shutil from simpleperf_report_lib import ReportLib from utils import AdbHelper, flatten_arg_list, log_info, log_warning, log_exit, ReadElf +def is_jit_symfile(dso_name): + return dso_name.split('/')[-1].startswith('TemporaryFile') class BinaryCacheBuilder(object): """Collect all binaries needed by perf.data in binary_cache.""" @@ -79,6 +81,8 @@ class BinaryCacheBuilder(object): for symbol in symbols: dso_name = symbol.dso_name if dso_name not in binaries: + if is_jit_symfile(dso_name): + continue binaries[dso_name] = lib.GetBuildIdForPath(dso_name) self.binaries = binaries |