Questions tagged [baseline-profile]

29 questions
1
vote
0 answers

No Baseline profile found in target apk

I am trying to use baseline profile generated and run benchmark test. Despite copying baseline profile, I am still facing issues. I copied it in all variant folders just to make sure its not missed, still getting file not found…
1
vote
1 answer

baseline-prof.txt location for each build variant

My app has multiple flavor dimensions and so I want to create baseline-prof.txt for each variant (e.g. fooBar). However, when I place the file in /app/src/fooBar it is not picked up during the release build. The only time it is picked up is when…
1
vote
1 answer

Baseline Profiles - Metrics are not consistent

I'm implementing the Baseline profile in an app and when I run my macrobenchmark tests, the results are not consistent. Not always the results are optimized using the baselineprofile.txt. I'm running the macrobenchmark test in an emulator with this…
1
vote
1 answer

How to activate Baseline Profiles - Android?

I generated Baseline Profiles and saw promising results in my Macrobenchmark test: I put the baseline-prof.txt file in the main folder next to the Manifest.xml. When I run the app in release mode I cannot see a visible difference when performing…
1
vote
1 answer

Baseline profile is not avaliable on Android S

I generate a baseline profile according to guidance of baseline profile and want to install my app on Android S devices without Google Play. I found the baseline profile is not available. dump the info of baseline profile by profman command and it…
TIAN
  • 11
  • 2
1
vote
1 answer

There was a problem collecting hot code using the Baseline Profile

I hope you can help me, I created the Benchmark module in Android Studio, he has helped me set up the required things, my project is multi-channel, package name I have set and correct: the code…
pingan li
  • 31
  • 2
0
votes
1 answer

How can I include keyevents while macrobenchmarking?

I would like to improve the performance of my app by the use of macrobenchmarks. Since my app is based on TV devices, user jounrneys will largely include using keyevents on a remote control. What I would like to know is how can I emulate keypresses…
0
votes
0 answers

The baseline profile install broadcast was not received. This most likely means that the profileinstaller library is missing from the target apk

Getting this error while running startup baseline benchmarks, according to the error I need to add this dependency in my build.gradle of main android module and it is already added…
Sagar Khurana
  • 184
  • 1
  • 2
  • 11
0
votes
1 answer

Android Baseline Profiles - No difference in App Startup Time (StartupTimingMetric)

This is my Macrobenchmark test to measure StartupTimingMetric @RunWith(AndroidJUnit4::class) @LargeTest class Startup { @get:Rule val rule = MacrobenchmarkRule() @Test fun measureScrollWithoutBaseline() { …
0
votes
0 answers

Which location is the correct one for baseline.prof file in app bundle?

Here is the generate location between different AGP version. `AGP 7.2.0 -> assets.dexopt AGP 7.2.2 -> com.android.tools.build.profiles AGP 7.3.0 -> com.android.tools.build.profiles AGP 7.3.1 -> com.android.tools.build.profiles AGP 7.4.1 ->…
welcomeworld
  • 132
  • 8
0
votes
1 answer

BaselineProfile for Phone/Tablet

How can I deal with the Baseline Profile generation when I have different code running depending on the device? For example, I have some kind of method like this: public static String runCode() { if (Utils.isTablet()) { …
0
votes
1 answer

Error creating Baseline Profile with Hilt WorkManager

I've been struggling to create a BaselineProfile in my existing project. There seems to be a conflict between the Hilt WorkManager configuration and the BaselineProfileGenerator. Whenever I try to generate the profile I get the following…
Barry Irvine
  • 13,858
  • 3
  • 25
  • 36
0
votes
0 answers

Generating a Baseline Profile for a specific flow

After rooting the emulator, creating the benchmark module, and following all the other steps I managed to generate a Baseline Profile. Here's the code: import androidx.benchmark.macro.ExperimentalBaselineProfilesApi import…
0
votes
0 answers

Android Jetpack Baseline Profile with Dynamic Feature Modules

I'm trying to implement baseline profile with macrobenchmark to speed up release build. I based my implementation on https://developer.android.com/studio/profile/baselineprofiles and this commit of their jetSnack demo…
1
2