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

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

Issue 153743008: Revert of Enable presubmit pylint in build/android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merging with changes to pylib/linker/test_case.py. Created 6 years, 10 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
« no previous file with comments | « build/android/pylib/valgrind_tools.py ('k') | build/android/symbolize_test.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/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2013 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 """Command line tool for continuously printing Android graphics surface 7 """Command line tool for continuously printing Android graphics surface
8 statistics on the console. 8 statistics on the console.
9 """ 9 """
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 default='jank_count,max_frame_delay,avg_surface_fps,' 88 default='jank_count,max_frame_delay,avg_surface_fps,'
89 'frame_lengths', 89 'frame_lengths',
90 help='Comma separated list of fields to display or "all".') 90 help='Comma separated list of fields to display or "all".')
91 parser.add_option('-d', 91 parser.add_option('-d',
92 '--delay', 92 '--delay',
93 dest='delay', 93 dest='delay',
94 default=1, 94 default=1,
95 type='float', 95 type='float',
96 help='Time in seconds to sleep between updates.') 96 help='Time in seconds to sleep between updates.')
97 97
98 options, _ = parser.parse_args(argv) 98 options, args = parser.parse_args(argv)
99 run_tests_helper.SetLogLevel(options.verbose_count) 99 run_tests_helper.SetLogLevel(options.verbose_count)
100 100
101 adb = android_commands.AndroidCommands(options.device) 101 adb = android_commands.AndroidCommands(options.device)
102 collector = surface_stats_collector.SurfaceStatsCollector(adb) 102 collector = surface_stats_collector.SurfaceStatsCollector(adb)
103 collector.DisableWarningAboutEmptyData() 103 collector.DisableWarningAboutEmptyData()
104 104
105 fields = options.fields.split(',') 105 fields = options.fields.split(',')
106 row_count = None 106 row_count = None
107 107
108 try: 108 try:
(...skipping 15 matching lines...) Expand all
124 _PrintResults(results) 124 _PrintResults(results)
125 row_count += 1 125 row_count += 1
126 except KeyboardInterrupt: 126 except KeyboardInterrupt:
127 sys.exit(0) 127 sys.exit(0)
128 finally: 128 finally:
129 collector.Stop() 129 collector.Stop()
130 130
131 131
132 if __name__ == '__main__': 132 if __name__ == '__main__':
133 main(sys.argv) 133 main(sys.argv)
OLDNEW
« no previous file with comments | « build/android/pylib/valgrind_tools.py ('k') | build/android/symbolize_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698