Lines Matching refs:family

73   size_t AddBenchmark(std::unique_ptr<Benchmark> family);
96 size_t BenchmarkFamilies::AddBenchmark(std::unique_ptr<Benchmark> family) { in AddBenchmark() argument
99 families_.push_back(std::move(family)); in AddBenchmark()
131 for (std::unique_ptr<Benchmark>& family : families_) { in FindBenchmarks()
133 if (!family) continue; in FindBenchmarks()
135 if (family->ArgsCnt() == -1) { in FindBenchmarks()
136 family->Args({}); in FindBenchmarks()
139 (family->thread_counts_.empty() in FindBenchmarks()
141 : &static_cast<const std::vector<int>&>(family->thread_counts_)); in FindBenchmarks()
142 const size_t family_size = family->args_.size() * thread_counts->size(); in FindBenchmarks()
146 Err << "The number of inputs is very large. " << family->name_ in FindBenchmarks()
153 for (auto const& args : family->args_) { in FindBenchmarks()
156 instance.name = family->name_; in FindBenchmarks()
157 instance.benchmark = family.get(); in FindBenchmarks()
158 instance.aggregation_report_mode = family->aggregation_report_mode_; in FindBenchmarks()
160 instance.time_unit = family->time_unit_; in FindBenchmarks()
161 instance.range_multiplier = family->range_multiplier_; in FindBenchmarks()
162 instance.min_time = family->min_time_; in FindBenchmarks()
163 instance.iterations = family->iterations_; in FindBenchmarks()
164 instance.repetitions = family->repetitions_; in FindBenchmarks()
165 instance.use_real_time = family->use_real_time_; in FindBenchmarks()
166 instance.use_manual_time = family->use_manual_time_; in FindBenchmarks()
167 instance.complexity = family->complexity_; in FindBenchmarks()
168 instance.complexity_lambda = family->complexity_lambda_; in FindBenchmarks()
169 instance.statistics = &family->statistics_; in FindBenchmarks()
177 if (arg_i < family->arg_names_.size()) { in FindBenchmarks()
178 const auto& arg_name = family->arg_names_[arg_i]; in FindBenchmarks()
181 StrFormat("%s:", family->arg_names_[arg_i].c_str()); in FindBenchmarks()
191 if (!IsZero(family->min_time_)) in FindBenchmarks()
192 instance.name += StrFormat("/min_time:%0.3f", family->min_time_); in FindBenchmarks()
193 if (family->iterations_ != 0) { in FindBenchmarks()
196 static_cast<unsigned long>(family->iterations_)); in FindBenchmarks()
198 if (family->repetitions_ != 0) in FindBenchmarks()
199 instance.name += StrFormat("/repeats:%d", family->repetitions_); in FindBenchmarks()
201 if (family->use_manual_time_) { in FindBenchmarks()
203 } else if (family->use_real_time_) { in FindBenchmarks()
208 if (!family->thread_counts_.empty()) { in FindBenchmarks()
214 instance.last_benchmark_instance = (&args == &family->args_.back()); in FindBenchmarks()