Lines Matching refs:options
78 options, categories = parser.parse_args(argv[1:])
80 if options.output_file is None:
81 options.output_file = 'trace.json' if options.write_json else 'trace.html'
83 if options.link_assets or options.asset_dir != 'trace-viewer':
86 if options.trace_time and options.trace_time < 0:
89 if (options.trace_buf_size is not None) and (options.trace_buf_size <= 0):
92 return (options, categories)
135 options, categories = parse_options(arguments)
140 if options.target == 'android':
141 options.atrace_categories = categories
142 elif options.target == 'linux':
143 options.ftrace_categories = categories
149 if options.target == 'android' and not options.atrace_categories:
150 options.atrace_categories = atrace_agent.DEFAULT_CATEGORIES
152 if options.target == 'android' and not options.from_file:
154 if not options.device_serial_number:
160 options.device_serial_number = devices[0]
164 if options.list_categories:
165 if options.target == 'android':
166 atrace_agent.list_categories(options)
167 elif options.target == 'linux':
168 ftrace_agent.list_categories(options)
173 os.path.dirname(os.path.abspath(__file__)), options)
179 if options.from_file is not None:
181 elif options.trace_time:
182 print('Starting tracing (%d seconds)' % options.trace_time)
183 time.sleep(options.trace_time)
191 controller.OutputSystraceResults(write_json=options.write_json)