Index: tools/telemetry/telemetry/core/platform/profiler/android_traceview_profiler.py |
diff --git a/tools/telemetry/telemetry/core/platform/profiler/android_traceview_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/android_traceview_profiler.py |
index 95794c511661c8337c411bf1a1cd896976bd4612..981e903f0fee72dee862d5fc9e953121a0b784bf 100644 |
--- a/tools/telemetry/telemetry/core/platform/profiler/android_traceview_profiler.py |
+++ b/tools/telemetry/telemetry/core/platform/profiler/android_traceview_profiler.py |
@@ -49,6 +49,7 @@ class AndroidTraceviewProfiler(profiler.Profiler): |
output_files = [] |
for pid, trace_file in self._trace_files: |
self._browser_backend.adb.RunShellCommand('am profile %s stop' % pid) |
+ # pylint: disable=cell-var-from-loop |
util.WaitFor(lambda: self._FileSize(trace_file) > 0, timeout=10) |
output_files.append(trace_file) |
self._browser_backend.adb.device().old_interface.Adb().Pull( |