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

Side by Side Diff: tools/profile_chrome/main.py

Issue 569173004: adb_profile_chrome: --trace-scheduler should also trace blink's scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « 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/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
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
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)
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