summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2019-05-08 14:48:57 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-05-08 14:48:57 -0700
commitbbd62aff7a9d4eb0ede8dc6af26673160074abb1 (patch)
treee88d02341f049ef9ef1d262f994dc42b9ec04c2a
parentad1e0006b16eeb98b86e44fd665743357a7eed15 (diff)
parentd22ba181d0b6d6e80dbdce815439f255c2db2e9c (diff)
downloadbase-temp_b_131756210_stage-aosp-master.tar.gz
Merge "Update to follow the new google benchmark API"temp_b_131756210_stage-aosp-master
am: d22ba181d0 Change-Id: Ie5065ff193bfe187683e729d589138c24f4f2fac
-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;