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

Side by Side Diff: bootperf-bin/showbootdata

Issue 6085003: Fix showbootdata handling when invoked with options but no arguments (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Created 10 years 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 | « no previous file | no next file » | 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/python
2 2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS 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 """A command to display summary statistics from runs of 'bootperf'. 7 """A command to display summary statistics from runs of 'bootperf'.
8 8
9 Command line options allow selecting from one of two sets of 9 Command line options allow selecting from one of two sets of
10 performance statistics: The boot time statistics (selected by 10 performance statistics: The boot time statistics (selected by
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 elif options.use_diskstats: 100 elif options.use_diskstats:
101 use_timestats = False 101 use_timestats = False
102 else: 102 else:
103 use_timestats = True 103 use_timestats = True
104 if options.eventnames: 104 if options.eventnames:
105 keylist = [] 105 keylist = []
106 for kl in options.eventnames: 106 for kl in options.eventnames:
107 keylist.extend(kl.split(',')) 107 keylist.extend(kl.split(','))
108 else: 108 else:
109 keylist = None 109 keylist = None
110 if not args:
111 args = ["."]
110 printfunc(args, use_timestats, keylist) 112 printfunc(args, use_timestats, keylist)
111 113
112 if __name__ == "__main__": 114 if __name__ == "__main__":
113 if len(sys.argv) > 1: 115 main(sys.argv[1:])
114 main(sys.argv[1:])
115 else:
116 main(["."])
OLDNEW
« 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