i followed the Guidelines to generate Baseline Profile Generation. And it works good so far for me.
The only thing i dont understood is why it looks like the Baseline Generation gets triggered multiple times.
If i create a User Journey i walk initial tru some onboarding but thats just the first time. On next iteration the tests waits in first screen and runs in the timeout.
@Test
fun generate() {
// The application id for the running build variant is read from the instrumentation arguments.
rule.collect(
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
) {
// This block defines the app's critical user journey. Here we are interested in
// optimizing for app startup. But you can also navigate and scroll through your most important UI.
// Start default activity for your app
pressHome()
startActivityAndWait()
goThruOnboarding()
Is it just me who find all examples by google way to trivial or do i miss something here ?
Thanks!