OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2014 The Chromium Authors. All rights reserved. | 3 # Copyright 2014 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 import logging | 7 import logging |
8 import optparse | 8 import optparse |
9 import os | 9 import os |
10 import sys | 10 import sys |
(...skipping 19 matching lines...) Expand all Loading... |
30 if options.trace_ubercompositor: | 30 if options.trace_ubercompositor: |
31 categories.append('disabled-by-default-cc.debug*') | 31 categories.append('disabled-by-default-cc.debug*') |
32 if options.trace_gpu: | 32 if options.trace_gpu: |
33 categories.append('disabled-by-default-gpu.debug*') | 33 categories.append('disabled-by-default-gpu.debug*') |
34 if options.trace_flow: | 34 if options.trace_flow: |
35 categories.append('disabled-by-default-toplevel.flow') | 35 categories.append('disabled-by-default-toplevel.flow') |
36 if options.trace_memory: | 36 if options.trace_memory: |
37 categories.append('disabled-by-default-memory') | 37 categories.append('disabled-by-default-memory') |
38 if options.trace_scheduler: | 38 if options.trace_scheduler: |
39 categories.append('disabled-by-default-cc.debug.scheduler') | 39 categories.append('disabled-by-default-cc.debug.scheduler') |
| 40 categories.append('disabled-by-default-blink.scheduler') |
40 if options.chrome_categories: | 41 if options.chrome_categories: |
41 categories += options.chrome_categories.split(',') | 42 categories += options.chrome_categories.split(',') |
42 return categories | 43 return categories |
43 | 44 |
44 | 45 |
45 def _ComputeSystraceCategories(options): | 46 def _ComputeSystraceCategories(options): |
46 if not options.systrace_categories: | 47 if not options.systrace_categories: |
47 return [] | 48 return [] |
48 return options.systrace_categories.split(',') | 49 return options.systrace_categories.split(',') |
49 | 50 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 enabled_controllers, | 250 enabled_controllers, |
250 options.time if not options.continuous else 0, | 251 options.time if not options.continuous else 0, |
251 output=options.output, | 252 output=options.output, |
252 compress=options.compress, | 253 compress=options.compress, |
253 write_json=options.json) | 254 write_json=options.json) |
254 if options.view: | 255 if options.view: |
255 if sys.platform == 'darwin': | 256 if sys.platform == 'darwin': |
256 os.system('/usr/bin/open %s' % os.path.abspath(result)) | 257 os.system('/usr/bin/open %s' % os.path.abspath(result)) |
257 else: | 258 else: |
258 webbrowser.open(result) | 259 webbrowser.open(result) |
OLD | NEW |