Questions tagged [baseline-profile]

29 questions
13
votes
2 answers

Baseline profiles aren't supported on this device version

I configured a benchmark module and created a baseline profile for the project and saved it in the app according to the instructions here https://developer.android.com/studio/profile/baselineprofiles. I've also added the…
Paul Chernenko
  • 696
  • 5
  • 21
11
votes
2 answers

Baseline Profiles x R8/Proguard

I've been experimenting with Android's Baseline Profile & MacroBenchmark libraries for improving the app performance. The question I have is that it is suggested that the MacroBenchmark's build-types be as close to the release build but with…
Darshan
  • 4,020
  • 2
  • 18
  • 49
6
votes
1 answer

PluginException: Failed to install APK when running baseline profile test via managed devices

running this command: ./gradlew :macro-benchmark:pixel2Api31ReleaseAndroidTest -P android.testInstrumentationRunnerArguments.class=com.benchmark.BaselineProfileGenerator -DBUILD_VARIANT=release and this is the result: > Task…
Suraj Vaishnav
  • 7,777
  • 4
  • 43
  • 46
6
votes
4 answers

Baseline Profiles - Problem Generating Release BaselineProfile

I am trying to implement the Baseline profiles(official documentation) for my app. Following the steps indicated in this video(Improving Performance with Baseline Profiles) if I use the DebugBuildVariant I am able to create the baseline-prof.txt…
J.Arroyo
  • 176
  • 6
6
votes
1 answer

android Baseline Profile with productFlavors

I'm applying Baseline Profiles to my app to improve performance and I follow this link on android page https://developer.android.com/topic/performance/baselineprofiles and it works fine. But when I add productFlavors it runs failed. The consumer…
TRose
  • 302
  • 3
  • 16
5
votes
1 answer

Not able to Run test for Baseline profile using Gradle Managed Device

I have created a benchmark module and within its build.gradle file I have added a managed device as following: testOptions { managedDevices { devices { pixel2api30 (com.android.build.api.dsl.ManagedVirtualDevice)…
nayan dhabarde
  • 1,734
  • 1
  • 19
  • 38
4
votes
0 answers

Baseline Profiles fail at profile generation with Shell.isSessionRooted

I am trying to integrate the newly introduced baseline profiles into our app. I am using the following simple snippet to generate a baseline profile. @RunWith(AndroidJUnit4::class) class BaseProfileGenerator { @get:Rule val baselineProfile…
2
votes
0 answers

Unable to copy baseline profile output from device

I'm trying to generate a baseline profile for my app but I'm seeing the following errors: :benchmark:connectedReleaseAndroidTest java.io.FileNotFoundException: META-INF/native/libnetty_tcnative_osx_aarch_64.jnilib java.io.FileNotFoundException:…
jpetitto
  • 331
  • 4
  • 15
2
votes
1 answer

Clearing app data when creating base line profiles

I'm trying to create some baseline profiles for my Android app that are a bit more meaningful than simply startActivityAndWait() My app starts off in an uninitialised state but once the user has chosen a destination this is stored in DataStore…
Barry Irvine
  • 13,858
  • 3
  • 25
  • 36
2
votes
1 answer

A couple questions about Baseline Profiles in Android

I read the docs and watched a couple videos about the benefits of baseline profiles, how to benchmark and how to generate them. Still I have a couple questions that I couldn't answer myself with the help of the docs. As soon as I have my…
HavanaSun
  • 446
  • 3
  • 12
  • 39
2
votes
2 answers

How to sideload baseline profiles in android?

I read the official docs but just can't get it running. https://developer.android.com/topic/performance/baselineprofiles#measuring-baseline My basline profiles are set up and I have my baseline-prof.txt file in the main folder. Not sure on how to…
HavanaSun
  • 446
  • 3
  • 12
  • 39
2
votes
0 answers

Poor performance HorizontalPager Jetpack Compose

My apps performance is pretty good overall, the only part where the FPS drops is when swiping through the HorizontalPager by accompanist. Each Page has a simple LazyVerticalGrid with 3 fixed columns but the performance is way worse compared to…
1
vote
1 answer

Baseline Profile - variants effect in Android

In my current project, I just can build non-prod variants base on my company's policy and I currently want to apply Baseline profile for the Prod version. So I wonder that when I generate a baseline profile in non-prod environment and put the…
1
vote
1 answer

Baseline profiles doesn't work on unrooted device?

I created a baseline profile for the project according to the instructions here; Baseline Profiles then I put baseline-prof.txt in the src/main folder and add dependencies in app.build.gradle implementation…
1
vote
0 answers

Baseline Profiles error with com.google.apps.tiktok.tracing

I'm trying to run a BaselineProfileGenerator but I'm getting some errors when I try on two devices (pixel2XL and Pixel 5) both using Android 11. The macrobenchmark lib version is 1.2.0-alpha09. The output running the test using Gradle is the…
Carlos Lopez
  • 133
  • 4
1
2