Home | History | Annotate | Download | only in src

Lines Matching refs:instance

257 struct Benchmark::Instance {
282 std::vector<Benchmark::Instance>* benchmarks);
324 static BenchmarkFamilies instance;
325 return &instance;
338 std::vector<Benchmark::Instance>* benchmarks) {
368 Benchmark::Instance instance;
369 instance.name = family->name_;
370 instance.benchmark = bench_family.get();
371 instance.has_arg1 = family->arg_count_ >= 1;
372 instance.arg1 = args.first;
373 instance.has_arg2 = family->arg_count_ == 2;
374 instance.arg2 = args.second;
375 instance.min_time = family->min_time_;
376 instance.use_real_time = family->use_real_time_;
377 instance.threads = num_threads;
378 instance.multithreaded = !(family->thread_counts_.empty());
380 // Add arguments to instance name
382 AppendHumanReadable(instance.arg1, &instance.name);
385 AppendHumanReadable(instance.arg2, &instance.name);
388 instance.name += StringPrintF("/min_time:%0.3f", family->min_time_);
391 instance.name += "/real_time";
396 instance.name += StringPrintF("/threads:%d", instance.threads);
399 if (re.Match(instance.name)) {
400 benchmarks->push_back(instance);
599 void RunInThread(const benchmark::internal::Benchmark::Instance* b,
615 void RunBenchmark(const benchmark::internal::Benchmark::Instance& b,
773 std::vector<Benchmark::Instance> benchmarks;
777 for (const internal::Benchmark::Instance& benchmark : benchmarks) {
787 std::vector<Benchmark::Instance> benchmarks;
793 for (const Benchmark::Instance& benchmark : benchmarks) {