Comments (1)
Thanks for this input. You are mixing two different approaches for installing an app with a baseline profile.
When a baseline profile is provided within the app, and the app is installed via local development tools you won't see the speed profile reported correctly.
The expected status of status=speed-profile
instead of status=run-from-apk
is visible for apps installed from the Play Store instead.
The Profile Installer library takes on the installation of the baseline profile. In order to verify the difference startup or runtime duration, use the Macrobenchmark library. We have included a set of startup benchmarks in Now in Android.
You can also load the development apk into Android Studio's APK Analyzer and check whether the profile is included as /assets/dexopt/baseline.prof{m}
.
Lastly, you can verify the installation by triggering a broadcast to force synchronous installation of the baseline profile, the same way that the benchmarking library does.
For a release build of Now in Android this broadcast is
adb shell am broadcast -a androidx.profileinstaller.action.INSTALL_PROFILE com.google.samples.apps.nowinandroid.demo/androidx.profileinstaller.ProfileInstallReceiver
If that returns 1
, the profile has been successfully installed.
Thanks for highlighting this potentially confusing section in our guidance. We will take a closer look and see how this can be improved by streamlining the guidance provided.
from nowinandroid.
Related Issues (20)
- I need help with my account
- [Documentation]: missing note that Gradle's JDK must be 17 HOT 2
- My issue
- [Bug]: SearchRoute recomposing twice despite no state change ? HOT 2
- [Documentation]: Baseline profile outdated
- Titlee HOT 1
- [Bug]: Used too much storage to store build intermediates HOT 9
- [Bug]:
- Hp injectiotor
- [Bug]: Redundant full screen recompositions on UI state change HOT 2
- [Documentation]: Improve about event
- [Bug]: Search bar cursor control is broken with physical keyboard HOT 2
- [Bug]: #1064 is breaking PRs HOT 1
- Replace testharness with `DeviceConfigurationOverride`
- [Bug]: enableEdgeToEdge() is causing ui issue HOT 3
- Update Compose BOM to latest version
- [Bug]: Empty search text is added in recent searches.
- [Documentation]: PR template link is broken?
- Nit: Variable 'release' is never used in app build file
- [Bug]: Breaking SOLID principles and Clean Architecture. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nowinandroid.