| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import json | 5 import json |
| 6 import optparse | 6 import optparse |
| 7 import os | 7 import os |
| 8 import py_utils | 8 import py_utils |
| 9 import re | 9 import re |
| 10 | 10 |
| 11 from devil.android import device_errors | 11 from devil.android import device_errors |
| 12 from devil.android.sdk import intent | 12 from devil.android.sdk import intent |
| 13 | |
| 14 from systrace import trace_result | 13 from systrace import trace_result |
| 15 from systrace import tracing_agents | 14 from systrace import tracing_agents |
| 16 | 15 |
| 17 | 16 |
| 18 _DEFAULT_CHROME_CATEGORIES = '_DEFAULT_CHROME_CATEGORIES' | 17 _DEFAULT_CHROME_CATEGORIES = '_DEFAULT_CHROME_CATEGORIES' |
| 19 _HEAP_PROFILE_MMAP_PROPERTY = 'heapprof.mmap' | 18 _HEAP_PROFILE_MMAP_PROPERTY = 'heapprof.mmap' |
| 20 | 19 |
| 21 | 20 |
| 22 class ChromeTracingAgent(tracing_agents.TracingAgent): | 21 class ChromeTracingAgent(tracing_agents.TracingAgent): |
| 23 def __init__(self, device, package_info, ring_buffer, trace_memory=False): | 22 def __init__(self, device, package_info, ring_buffer, trace_memory=False): |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 categories.append('disabled-by-default-toplevel.flow') | 206 categories.append('disabled-by-default-toplevel.flow') |
| 208 if config.trace_memory: | 207 if config.trace_memory: |
| 209 categories.append('disabled-by-default-memory') | 208 categories.append('disabled-by-default-memory') |
| 210 if config.trace_scheduler: | 209 if config.trace_scheduler: |
| 211 categories.append('disabled-by-default-blink.scheduler') | 210 categories.append('disabled-by-default-blink.scheduler') |
| 212 categories.append('disabled-by-default-cc.debug.scheduler') | 211 categories.append('disabled-by-default-cc.debug.scheduler') |
| 213 categories.append('disabled-by-default-renderer.scheduler') | 212 categories.append('disabled-by-default-renderer.scheduler') |
| 214 if config.chrome_categories: | 213 if config.chrome_categories: |
| 215 categories += config.chrome_categories.split(',') | 214 categories += config.chrome_categories.split(',') |
| 216 return categories | 215 return categories |
| OLD | NEW |