Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Unified Diff: tools/telemetry/telemetry/core/platform/profiler/android_profiling_helper.py

Issue 669163002: Fix perf profiler incorrect library collection in some cases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/telemetry/unittest_data/sample_perf_report_output.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/platform/profiler/android_profiling_helper.py
diff --git a/tools/telemetry/telemetry/core/platform/profiler/android_profiling_helper.py b/tools/telemetry/telemetry/core/platform/profiler/android_profiling_helper.py
index a6c2a6f66160e365d73f987801e8264cb72f15a9..d8736079d03a38c9836ca999cc30106f5e007073 100644
--- a/tools/telemetry/telemetry/core/platform/profiler/android_profiling_helper.py
+++ b/tools/telemetry/telemetry/core/platform/profiler/android_profiling_helper.py
@@ -118,8 +118,9 @@ def GetRequiredLibrariesForPerfProfile(profile_file):
if lib:
lib = lib.group(1)
path = os.path.dirname(lib)
- if any(path.startswith(ignored_path)
- for ignored_path in _IGNORED_LIB_PATHS) or path == '/':
+ if (any(path.startswith(ignored_path)
+ for ignored_path in _IGNORED_LIB_PATHS)
+ or path == '/' or not path):
continue
libs.add(lib)
return libs
« no previous file with comments | « no previous file | tools/telemetry/unittest_data/sample_perf_report_output.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698