Generate baseline profile for free and pro app (#1136)

This commit is contained in:
Yogesh Choudhary Paliyal
2025-04-06 19:47:02 +05:30
committed by GitHub
parent 76056c9d7a
commit f39c37c59f
6 changed files with 32116 additions and 2132 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -51,9 +51,10 @@ android {
// You can specify to run the generators on a managed devices or connected devices.
baselineProfile {
// This specifies the managed devices to use that you run the tests on.
// managedDevices.clear()
// managedDevices += "pixel6Api34"
useConnectedDevices = true
managedDevices.clear()
managedDevices += "pixel6Api34"
useConnectedDevices = false
// mergeIntoMain = true
}
dependencies {

View File

@@ -42,7 +42,8 @@ class BaselineProfileGenerator {
fun generate() {
// The application id for the running build variant is read from the instrumentation arguments.
rule.collect(
packageName = "com.yogeshpaliyal.keypass",
packageName = InstrumentationRegistry.getArguments().getString("targetAppId")
?: throw Exception("targetAppId not passed as instrumentation runner arg"),
// See: https://d.android.com/topic/performance/baselineprofiles/dex-layout-optimizations
includeInStartupProfile = true