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

Unified Diff: tools/android/memdump/memreport.py

Issue 23450019: Android memreport: captures enter and KeyboardInterrupt. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/memdump/memreport.py
diff --git a/tools/android/memdump/memreport.py b/tools/android/memdump/memreport.py
index b47753504fd3f0f5c6db217291ac9fdb3ae60cb6..fec213d1c02d8af6e671fc88e1414df9f358bd62 100755
--- a/tools/android/memdump/memreport.py
+++ b/tools/android/memdump/memreport.py
@@ -234,10 +234,12 @@ def _RunManualGraph(package_name, interval):
t = threading.Thread(target=_Loop)
- print >>sys.stderr, 'Press enter to stop'
+ print >>sys.stderr, 'Press enter or CTRL+C to stop'
t.start()
try:
_ = raw_input()
+ except KeyboardInterrupt:
+ pass
finally:
should_quit.set()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698