Status Update
Comments
cc...@google.com <cc...@google.com> #2
I had created the same issue with wrong component earlier
ma...@google.com <ma...@google.com>
ma...@google.com <ma...@google.com>
ma...@google.com <ma...@google.com> #3
I noticed in the sample project you're using an emulator with api30.
We found a bug that is being fixed related to api 30 emulator and baseline profile generation.
Could you please try:
- Updating the baseline profile gradle plugin version (alpha14 is the latest as we speak)
- Change api version to 33 (or anything > 30)
Let me know if this works!
Thanks!
ap...@google.com <ap...@google.com> #4
ma...@google.com <ma...@google.com>
pu...@gmail.com <pu...@gmail.com> #5
Thanks for suggestions and I could generate profiles in few scenarios. Few observations:
-
The issue seems to be specific to ARM devices running in FTL, regardless of the API version. When testing the application on a physical device (from FTL) with API 33, the profiles were successfully generated. This suggests that the problem lies in the ARM device profiles not being located where the extraction process expects them to be. It's worth investigating whether this issue originates from the plugin itself and whether it requires attention and resolution.
-
The current behavior of the
BaselineProfileConsumerExtension
does not save the optionssaveInSrc
andbaselineProfileOutputDir
in the designated locations. This inconsistency exists when running in FTL managed device. It would be beneficial to enhance the plugin's functionality to ensure consistent behavior across different environments. This improvement would ensure that the specified options for saving profiles are reliably honored, regardless of the testing environment being used.
ma...@google.com <ma...@google.com>
ma...@google.com <ma...@google.com> #6
Thanks for your observations.
About your second point: The plugin does not make any distinction around what device the baseline profile generators run, when it come to saveInSrc
and baselineProfileOutputDir
. Could you please describe the issue more in detail? Or update your sample project if you'd like, so I can give a look.
ma...@google.com <ma...@google.com>
ap...@google.com <ap...@google.com> #7
Actually could you also please check logcat for the devices where it wasn't generated and look for anything related to dex2oat
? I'm wondering if the issue is only in the emulators rather than the gradle task.
pr...@google.com <pr...@google.com> #8
I am trying to save it in the source after generating by following the
I have attached the sample project (Macrobenchmark) and included comments in the build.gradle.kts
file in baselineProfile
module.
Description
The below warning is quite noisy (and IMO unnecessary for patch releases). Could there be a means to suppress this, for example a gradle property?