Lines Matching refs:opts
150 bench_opts_t opts; in ParseOpts() local
166 opts.cpu_to_lock = strtol(optarg, &check_null, 10); in ParseOpts()
177 opts.xmlpath = optarg; in ParseOpts()
185 opts.extra_benchmarks.push_back(optarg); in ParseOpts()
194 opts.num_iterations = strtol(optarg, &check_null, 10); in ParseOpts()
195 if (*check_null != '\0' or opts.num_iterations < 0) { in ParseOpts()
212 return opts; in ParseOpts()
558 void RegisterAllBenchmarks(const bench_opts_t& opts, in RegisterAllBenchmarks() argument
565 RegisterGoogleBenchmarks(bench_opts_t(), opts, entry.first, run_args); in RegisterAllBenchmarks()
571 bench_opts_t opts = ParseOpts(argc, argv); in main() local
575 if (opts.xmlpath.empty()) { in main()
577 if (opts.extra_benchmarks.empty()) { in main()
578 RegisterAllBenchmarks(opts, args_shorthand); in main()
580 } else if (!FileExists(opts.xmlpath)) { in main()
582 std::string file(android::base::GetExecutableDirectory() + "/suites/" + opts.xmlpath); in main()
583 if (opts.xmlpath[0] == '/' || !FileExists(file)) { in main()
584 printf("Cannot find xml file %s: does not exist or is not a file.\n", opts.xmlpath.c_str()); in main()
587 opts.xmlpath = file; in main()
590 if (!opts.xmlpath.empty()) { in main()
591 if (int err = RegisterXmlBenchmarks(opts, args_shorthand)) { in main()
595 RegisterCliBenchmarks(opts, args_shorthand); in main()