27 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
67
views
Android R8, missing classes with Macrobenchmark
I have been going with Write a Macrobenchmark. I get errors with R8. Outputs are:
Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are ...
1
vote
1
answer
151
views
Android UIAutomator: How to wait for any of multiple conditions?
As a step in creating baseline profiles for my app, I need to wait for my feed to render. The problem is that I do not know the exact tag to wait for since the feed is dynamic and the tag might not ...
2
votes
1
answer
521
views
Android Macrobenchmark 1.2.4: StartupMode.COLD breaks the benchmarks. Inside measure block UiAutomator can't find any objects
I have added macrobenchmark module with StartupTimingMetric and FrameTimingMetric metrics long time ago and my setup was working fine. Since then I have not been running benchmarks due to some reasons....
4
votes
1
answer
1k
views
getting error "Cannot locate tasks that match ':app:generateBenchmarkReleaseBaselineProfile'" error when running baseline profiler
After creating a new BaselineProfile module, I tried to execute the task:
and I'm getting the following error:
Cannot locate tasks that match ':app:generateBenchmarkReleaseBaselineProfile' as task '...
1
vote
0
answers
79
views
Unable to find button via uiatuomator android benchmarking for a multimodular project
I have a multimodular project and I want to test benchmarking
These are my modules
:app [variant : debug, release ; flavors: prod, stage] [globalPackageName]
:presentation [loginPackageName]
:data
:...
1
vote
1
answer
281
views
MacroBenchmark giving error testInstrumentationRunnerArguments "EMULATOR,DEBUGGABLE"
I am getting below error while running macrobenchmark test for to measure App Startup Time
testInstrumentationRunnerArguments["androidx.benchmark.suppressErrors"] = "EMULATOR,...
1
vote
0
answers
150
views
Android Macrobenchmark: How to keep the APK on target from being updated
I have an application that requires a user to be logged-in in order to function. Every time I try to launch the Macrobench, it appears that the APK is being built, then deleted on the target, then ...
0
votes
1
answer
63
views
Detect if Macrobenchmark is running
Is there a way to detect when MacroBenchmark is running?
Ideally I wish to use this check to connect to a WireMock server running on my host machine.
2
votes
1
answer
431
views
APK/APP installed during macrobenchmark crashes on launch
I am trying to setup macrobenchmarking on my app which has multiple modules and multiple flavors and following the android developer guide. However, I am getting below error related to ...
1
vote
1
answer
1k
views
Android application with baselineprofile macro benchmark is failing with profileinstaller library issue
I am trying to improve performance for my application by trying baseprofile but unable to run it. Configured the project with gradle 8.2 and
'androidx.profileinstaller:profileinstaller:1.3.1'
'...
0
votes
1
answer
679
views
Baseline Profile will benefit only for very First App Launch only?
I have implemented Baseline Profile for Android. I can see baseline.prof in assets/dexopt
Also, profileinstaller dependency is already added. But still not clear about its benefits?
Baseline profile ...
5
votes
0
answers
296
views
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/...
1
vote
2
answers
2k
views
Android MacroBenchmark: FrameTimingMetric test is running only for 1 iteration
I am trying to perform a scroll test on a recycler view using FrameTimingMetric for 5 iterations.
My AppStartup Test using StartupTimingMetric() is working fine and generating results for all 5 ...
0
votes
1
answer
2k
views
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 there
...
0
votes
2
answers
1k
views
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 ...