Lines Matching refs:FLAGS
102 FLAGS = __argparse.parse_args()
103 if FLAGS.adb:
105 _path.init(FLAGS.device_serial, FLAGS.adb_binary)
110 if FLAGS.verbosity >= 5:
139 ARGV = [FLAGS.skpbench, '--verbosity', str(FLAGS.verbosity)]
140 if FLAGS.duration:
141 ARGV.extend(['--duration', str(FLAGS.duration)])
142 if FLAGS.sample_ms:
143 ARGV.extend(['--sampleMs', str(FLAGS.sample_ms)])
144 if FLAGS.gpu:
146 if FLAGS.fps:
148 if FLAGS.pr:
149 ARGV.extend(['--pr'] + re.split(r'[ ,]', FLAGS.pr))
150 if FLAGS.cc:
152 if FLAGS.nocache:
154 if FLAGS.allPathsVolatile:
156 if FLAGS.gpuThreads != -1:
157 ARGV.extend(['--gpuThreads', str(FLAGS.gpuThreads)])
158 if FLAGS.internalSamples != -1:
159 ARGV.extend(['--internalSamples', str(FLAGS.internalSamples)])
162 if FLAGS.ddl:
164 if FLAGS.ddlNumRecordingThreads:
166 str(FLAGS.ddlNumRecordingThreads)])
167 if FLAGS.ddlTilingWidthHeight:
168 ARGV.extend(['--ddlTilingWidthHeight', str(FLAGS.ddlTilingWidthHeight)])
170 if FLAGS.dontReduceOpsTaskSplitting:
173 if FLAGS.gpuResourceCacheLimit:
174 ARGV.extend(['--gpuResourceCacheLimit', str(FLAGS.gpuResourceCacheLimit)])
176 if FLAGS.adb:
177 if FLAGS.device_serial is None:
178 ARGV[:0] = [FLAGS.adb_binary, 'shell']
180 ARGV[:0] = [FLAGS.adb_binary, '-s', FLAGS.device_serial, 'shell']
233 if FLAGS.write_path:
234 pngfile = _path.join(FLAGS.write_path, self.config,
276 elif FLAGS.verbosity >= 2:
300 benches = collections.deque([(src, config, FLAGS.max_stddev)
316 emit_result(skpbench.best_result.format(FLAGS.suffix),
324 if FLAGS.verbosity >= 1:
336 if FLAGS.verbosity >= 4:
338 if FLAGS.verbosity >= 1:
350 configs = re.split(DELIMITER, FLAGS.config)
351 srcs = _path.find_skps(FLAGS.srcs)
355 if FLAGS.adb:
356 adb = Adb(FLAGS.device_serial, FLAGS.adb_binary,
357 echo=(FLAGS.verbosity >= 5))
378 if FLAGS.lock_clocks:
383 if FLAGS.clock_speed:
384 hardware.setDesiredClock(FLAGS.clock_speed)
388 if FLAGS.resultsfile:
389 with open(FLAGS.resultsfile, mode='a+') as resultsfile: