refactor(build): migrate to Baseline Profile Gradle Plugin

This commit is contained in:
Harsh Shandilya 2023-07-31 16:48:09 +05:30
parent d9ab751dbd
commit 3bb5dfffbe
No known key found for this signature in database
12 changed files with 19655 additions and 25322 deletions

View file

@ -28,6 +28,7 @@ class BaselineProfileGenerator {
baselineProfileRule.collect(
packageName = PACKAGE_NAME,
maxIterations = 8,
includeInStartupProfile = true,
) {
device.executeShellCommand("pm clear $PACKAGE_NAME")

View file

@ -12,7 +12,7 @@ import androidx.test.uiautomator.UiDevice
import androidx.test.uiautomator.UiObject2
import androidx.test.uiautomator.Until
const val PACKAGE_NAME = "dev.msfjarvis.claw.android.benchmark"
const val PACKAGE_NAME = "dev.msfjarvis.claw.android"
private const val AWAIT_TIMEOUT = 10_000L
private const val SAVE_BUTTON_ID = "save_button"
private const val NAV_ID_HOTTEST = "HOTTEST"