OLD | NEW |
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 Loading... |
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(["."]) | |
OLD | NEW |