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

Unified Diff: tools/memory_inspector/memory_inspector/backends/android_backend.py

Issue 1138523003: [memory-inspector] Fix zygote wrapper script and UI scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months 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/memory_inspector/memory_inspector/frontends/www_content/js/processes.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/memory_inspector/memory_inspector/backends/android_backend.py
diff --git a/tools/memory_inspector/memory_inspector/backends/android_backend.py b/tools/memory_inspector/memory_inspector/backends/android_backend.py
index b804805331d77cfc15086854f01b5e025f48c712..e66cf20ff6efb150bc03e3c349d7de0c508dc60b 100644
--- a/tools/memory_inspector/memory_inspector/backends/android_backend.py
+++ b/tools/memory_inspector/memory_inspector/backends/android_backend.py
@@ -234,7 +234,7 @@ class AndroidDevice(backends.Device):
wrapper_file.write('#!/system/bin/sh\n'
'LD_PRELOAD="libheap_profiler.so:$LD_PRELOAD" '
'exec %s.real "$@"\n' % app_process)
- wrapper_file.close()
+ wrapper_file.flush()
self.adb.Push(wrapper_file.name, app_process)
self.adb.Shell(['chown', 'root.shell', app_process])
self.adb.Shell(['chmod', '755', app_process])
« no previous file with comments | « no previous file | tools/memory_inspector/memory_inspector/frontends/www_content/js/processes.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698