summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2019-05-08 21:18:40 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-05-08 21:18:40 +0000
commitd22ba181d0b6d6e80dbdce815439f255c2db2e9c (patch)
tree686ea6cee6426b1ca029516e756e086502c3d333
parent86f2f55b86c962bc341a23f47f541b7a9c76f740 (diff)
parent5eb2e9689877a623d37bcb76a30be84c4f0896cc (diff)
downloadbase-d22ba181d0b6d6e80dbdce815439f255c2db2e9c.tar.gz
Merge "Update to follow the new google benchmark API"
-rw-r--r--libs/hwui/tests/macrobench/TestSceneRunner.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/hwui/tests/macrobench/TestSceneRunner.cpp b/libs/hwui/tests/macrobench/TestSceneRunner.cpp
index 5f5a92e55bf2..adfae5bccebe 100644
--- a/libs/hwui/tests/macrobench/TestSceneRunner.cpp
+++ b/libs/hwui/tests/macrobench/TestSceneRunner.cpp
@@ -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;
@@ -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;