Lines Matching refs:run
221 void JSONReporter::PrintRunData(Run const& run) {
224 out << indent << FormatKV("name", run.benchmark_name()) << ",\n";
225 out << indent << FormatKV("family_index", run.family_index) << ",\n";
227 << FormatKV("per_family_instance_index", run.per_family_instance_index)
229 out << indent << FormatKV("run_name", run.run_name.str()) << ",\n";
230 out << indent << FormatKV("run_type", [&run]() -> const char* {
231 switch (run.run_type) {
239 out << indent << FormatKV("repetitions", run.repetitions) << ",\n";
240 if (run.run_type != BenchmarkReporter::Run::RT_Aggregate) {
241 out << indent << FormatKV("repetition_index", run.repetition_index)
244 out << indent << FormatKV("threads", run.threads) << ",\n";
245 if (run.run_type == BenchmarkReporter::Run::RT_Aggregate) {
246 out << indent << FormatKV("aggregate_name", run.aggregate_name) << ",\n";
247 out << indent << FormatKV("aggregate_unit", [&run]() -> const char* {
248 switch (run.aggregate_unit) {
257 if (internal::SkippedWithError == run.skipped) {
259 out << indent << FormatKV("error_message", run.skip_message) << ",\n";
260 } else if (internal::SkippedWithMessage == run.skipped) {
262 out << indent << FormatKV("skip_message", run.skip_message) << ",\n";
264 if (!run.report_big_o && !run.report_rms) {
265 out << indent << FormatKV("iterations", run.iterations) << ",\n";
266 if (run.run_type != Run::RT_Aggregate ||
267 run.aggregate_unit == StatisticUnit::kTime) {
268 out << indent << FormatKV("real_time", run.GetAdjustedRealTime())
270 out << indent << FormatKV("cpu_time", run.GetAdjustedCPUTime());
272 assert(run.aggregate_unit == StatisticUnit::kPercentage);
273 out << indent << FormatKV("real_time", run.real_accumulated_time)
275 out << indent << FormatKV("cpu_time", run.cpu_accumulated_time);
278 << indent << FormatKV("time_unit", GetTimeUnitString(run.time_unit));
279 } else if (run.report_big_o) {
280 out << indent << FormatKV("cpu_coefficient", run.GetAdjustedCPUTime())
282 out << indent << FormatKV("real_coefficient", run.GetAdjustedRealTime())
284 out << indent << FormatKV("big_o", GetBigOString(run.complexity)) << ",\n";
285 out << indent << FormatKV("time_unit", GetTimeUnitString(run.time_unit));
286 } else if (run.report_rms) {
287 out << indent << FormatKV("rms", run.GetAdjustedCPUTime());
290 for (auto& c : run.counters) {
294 if (run.memory_result) {
295 const MemoryManager::Result memory_result = *run.memory_result;
296 out << ",\n" << indent << FormatKV("allocs_per_iter", run.allocs_per_iter);
311 if (!run.report_label.empty()) {
312 out << ",\n" << indent << FormatKV("label", run.report_label);