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

Side by Side Diff: build/android/adb_logcat_printer.py

Issue 10693110: [android] Split top-level scripts and libraries from build/android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright on __init__.py, removed #! on some pylib/ files. Created 8 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 | « build/android/adb_logcat_monitor.py ('k') | build/android/android_commands.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 #!/usr/bin/python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Shutdown adb_logcat_monitor and print accumulated logs. 7 """Shutdown adb_logcat_monitor and print accumulated logs.
8 8
9 To test, call './adb_logcat_printer.py <base_dir>' where 9 To test, call './adb_logcat_printer.py <base_dir>' where
10 <base_dir> contains 'adb logcat -v threadtime' files named as 10 <base_dir> contains 'adb logcat -v threadtime' files named as
11 logcat_<deviceID>_<sequenceNum> 11 logcat_<deviceID>_<sequenceNum>
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 logger.info('Done.') 193 logger.info('Done.')
194 sh.flush() 194 sh.flush()
195 output_file.write('\nLogcat Printer Event Log\n') 195 output_file.write('\nLogcat Printer Event Log\n')
196 output_file.write(log_stringio.getvalue()) 196 output_file.write(log_stringio.getvalue())
197 197
198 if __name__ == '__main__': 198 if __name__ == '__main__':
199 if len(sys.argv) == 1: 199 if len(sys.argv) == 1:
200 print 'Usage: %s <base_dir>' % sys.argv[0] 200 print 'Usage: %s <base_dir>' % sys.argv[0]
201 sys.exit(1) 201 sys.exit(1)
202 sys.exit(main(sys.argv[1], sys.stdout)) 202 sys.exit(main(sys.argv[1], sys.stdout))
OLDNEW
« no previous file with comments | « build/android/adb_logcat_monitor.py ('k') | build/android/android_commands.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698