Loading libs/hwui/tests/macrobench/TestSceneRunner.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -81,7 +81,7 @@ void outputBenchmarkReport(const TestScene::Info& info, const TestScene::Options // mean and stddev which doesn't make sense for our usage std::vector<BenchmarkReporter::Run> reports; BenchmarkReporter::Run report; report.run_name = info.name; report.run_name.function_name = info.name; report.iterations = static_cast<int64_t>(opts.count); report.real_accumulated_time = durationInS; report.cpu_accumulated_time = durationInS; Loading @@ -94,8 +94,8 @@ void outputBenchmarkReport(const TestScene::Info& info, const TestScene::Options // in that test case than percentiles. if (!opts.renderOffscreen) { for (auto& ri : REPORTS) { reports[0].run_name = info.name; reports[0].run_name += ri.suffix; reports[0].run_name.function_name = info.name; reports[0].run_name.function_name += ri.suffix; durationInS = proxy->frameTimePercentile(ri.percentile) / 1000.0; reports[0].real_accumulated_time = durationInS; reports[0].cpu_accumulated_time = durationInS; Loading Loading
libs/hwui/tests/macrobench/TestSceneRunner.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -81,7 +81,7 @@ void outputBenchmarkReport(const TestScene::Info& info, const TestScene::Options // mean and stddev which doesn't make sense for our usage std::vector<BenchmarkReporter::Run> reports; BenchmarkReporter::Run report; report.run_name = info.name; report.run_name.function_name = info.name; report.iterations = static_cast<int64_t>(opts.count); report.real_accumulated_time = durationInS; report.cpu_accumulated_time = durationInS; Loading @@ -94,8 +94,8 @@ void outputBenchmarkReport(const TestScene::Info& info, const TestScene::Options // in that test case than percentiles. if (!opts.renderOffscreen) { for (auto& ri : REPORTS) { reports[0].run_name = info.name; reports[0].run_name += ri.suffix; reports[0].run_name.function_name = info.name; reports[0].run_name.function_name += ri.suffix; durationInS = proxy->frameTimePercentile(ri.percentile) / 1000.0; reports[0].real_accumulated_time = durationInS; reports[0].cpu_accumulated_time = durationInS; Loading