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

Side by Side Diff: tools/profile_chrome/ui.py

Issue 402803005: Move adb_profile_chrome to profile_chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/profile_chrome/trace_packager_unittest.py ('k') | tools/profile_chrome/util.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import logging 5 import logging
6 import select 6 import select
7 import sys 7 import sys
8 8
9 9
10 def PrintMessage(heading, eol='\n'): 10 def PrintMessage(heading, eol='\n'):
11 sys.stdout.write('%s%s' % (heading, eol)) 11 sys.stdout.write('%s%s' % (heading, eol))
12 sys.stdout.flush() 12 sys.stdout.flush()
13 13
14 14
15 def WaitForEnter(timeout): 15 def WaitForEnter(timeout):
16 select.select([sys.stdin], [], [], timeout) 16 select.select([sys.stdin], [], [], timeout)
17 17
18 18
19 def EnableTestMode(): 19 def EnableTestMode():
20 def NoOp(*_, **__): 20 def NoOp(*_, **__):
21 pass 21 pass
22 # pylint: disable=W0601 22 # pylint: disable=W0601
23 global PrintMessage 23 global PrintMessage
24 global WaitForEnter 24 global WaitForEnter
25 PrintMessage = NoOp 25 PrintMessage = NoOp
26 WaitForEnter = NoOp 26 WaitForEnter = NoOp
27 logging.getLogger().disabled = True 27 logging.getLogger().disabled = True
OLDNEW
« no previous file with comments | « tools/profile_chrome/trace_packager_unittest.py ('k') | tools/profile_chrome/util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698