From 833b293509efc60b061c50fffe20cd06c9d9fc2a Mon Sep 17 00:00:00 2001 From: Tony Mak Date: Mon, 3 Aug 2020 12:23:51 +0100 Subject: [PATCH] Setup crystalball and add more perf tests crystalball is the new perf system that we are migrating to. The perf tests on platform side are repurposed to benchmark the platform code and various overheads introduced by the system. The model performance will be tracked elsewhere. Bug: 161918490 Bug: 156886144 Test: atest TextClassifierPerfsTest Change-Id: Ib9d204a930f5212a68407dbab576627a51dfb41e --- .../perftests/textclassifier/Android.bp | 2 + .../perftests/textclassifier/AndroidTest.xml | 32 ++++++ .../TextClassifierPerfTest.java | 102 +++++++++--------- 3 files changed, 85 insertions(+), 51 deletions(-) diff --git a/apct-tests/perftests/textclassifier/Android.bp b/apct-tests/perftests/textclassifier/Android.bp index 49952dc1d009d..9f795a7ed54a5 100644 --- a/apct-tests/perftests/textclassifier/Android.bp +++ b/apct-tests/perftests/textclassifier/Android.bp @@ -19,7 +19,9 @@ android_test { "androidx.test.rules", "androidx.annotation_annotation", "apct-perftests-utils", + "collector-device-lib-platform", ], + data: [":perfetto_artifacts"], platform_apis: true, test_suites: ["device-tests"], } diff --git a/apct-tests/perftests/textclassifier/AndroidTest.xml b/apct-tests/perftests/textclassifier/AndroidTest.xml index 3df51b8ae67af..3fac462448f0e 100644 --- a/apct-tests/perftests/textclassifier/AndroidTest.xml +++ b/apct-tests/perftests/textclassifier/AndroidTest.xml @@ -21,8 +21,40 @@