Making apps blazing fast with Baseline Profiles

  Рет қаралды 19,365

Android Developers

Android Developers

Күн бұрын

Baseline Profiles are a new way to dramatically improve app startup and runtime performance of apps and libraries. In this session, we will share how to create a Baseline Profile and verify its effectiveness. You will also discover how the Android Runtime improves app performance, when a Baseline Profile is provided on various Android platform versions.
Resources:
Baseline Profiles → goo.gle/baseline-profiles
Improve app performance with Baseline Profiles → goo.gle/baseline-profiles-cod...
Performance - MAD Skills playlist → goo.gle/performance
Inspect app performance with Macrobenchmark → goo.gle/benchmarking-codelab
Speakers: Rahul Ravikumar, Tomáš Mlynarič
Watch more:
Watch all the Android Dev Summit sessions → goo.gle/ADS-All
Watch all the Modern Android Development sessions → goo.gle/ADS-MAD
Subscribe to Android Developers → goo.gle/AndroidDevs
#Featured #AndroidDevSummit #Android

Пікірлер: 31
@GoDigital685
@GoDigital685 Жыл бұрын
My best platform in KZbin ☺️☺️☺️
@dounaka
@dounaka Жыл бұрын
good explanation !
@itguru4all
@itguru4all Жыл бұрын
Excellent
@kalidsherefuddin
@kalidsherefuddin Жыл бұрын
The great course
@GoDigital685
@GoDigital685 Жыл бұрын
Beautiful 😍
@k.monish4581
@k.monish4581 9 ай бұрын
I am an android devloper , When adaptive battery in my mobile is enabled means i cant see the performance improvement , time changes and even jit pool performance in Google pixel device and when the adaptive batter is disabled then i can see the time improvements and jit thread pool changes , is this the profiler bug or did i missed anything in the code
@HieuNguyen-um1lw
@HieuNguyen-um1lw Жыл бұрын
Perfect 😍
@MakuLabs
@MakuLabs Жыл бұрын
Great content!
@aleksandrnevyantsev4737
@aleksandrnevyantsev4737 Жыл бұрын
Is it possible to store a profile inside a device to pull it from device farm later? Like I want to start a test somewhere in the cloud and download result after it finished
@mlykotom
@mlykotom Жыл бұрын
Yes. The profile is actually always saved on the device. You can specify a known folder with additionalTestOutputDir instrumentation argument.
@dejalaenvisto
@dejalaenvisto Жыл бұрын
Saludos!!!!
@karimelbahi1725
@karimelbahi1725 Жыл бұрын
Is there availability to create more than one baseline profile? I ask this Q to know how to cover some journeys that are separated!
@mlykotom
@mlykotom Жыл бұрын
Currently we support only one file per Gradle module, but we're aware that's not enough! So stay tuned for future updates :) As a workaround for now, you'd need to place all the rules into the one file. Thanks for understanding.
@YashNagayach
@YashNagayach Жыл бұрын
@@mlykotom I implemented baseline profile in my app, it is showing some improvement when we run benchmark, but no improvement I can see on play console numbers for cold startup time. Any idea?
@khaqim4148
@khaqim4148 6 ай бұрын
is baseline profiles available from android 7?
@GoDigital685
@GoDigital685 Жыл бұрын
Please I really need to fix my GPAY I don't know if there is anything so that it can start function very well and also to start receiving payments
@AndroidDevelopers
@AndroidDevelopers Жыл бұрын
Hello! We're sorry to hear about this issue. Please try reaching out to Google Pay customer service by following this link: goo.gle/3YA2AiR
@Arcao
@Arcao Жыл бұрын
Is there any way for generating base profile for app which require GMS? I guess AOSP image doesn't have GMS installed. Rooting real device is not valid answer because of voiding varanty.
@mlykotom
@mlykotom Жыл бұрын
Try Jetpack Macrobenchmark 1.2.0-alpha06 that allows generating Baseline Profiles on devices running Android 13 (API level 33) without the root access.
@cifricfranjo
@cifricfranjo Жыл бұрын
I think thats not enough for understanding all principles of Baseline Profiles
@OscarDelgado-dg1ob
@OscarDelgado-dg1ob Жыл бұрын
Where does the 40% result came from? I think 116ms / 406ms = 28'57%, isn't it?
@rohanmanchanda5250
@rohanmanchanda5250 Жыл бұрын
For the ones that believe that tests are futile excuses for mere mortals to appear smart? Really, if someone doesn't know/care to learn to write tests, why isn't there just a simple automated tool that does the job for ya? Adding references to every important piece of code in the entire codebase sounds kinda daunting, wouldn't you say?
@vengateshm2122
@vengateshm2122 Жыл бұрын
How many user journeys i can create base profile? For example Dashboard > List > Detail Say if detail screen has few other screen can i base profile that also.
@mlykotom
@mlykotom Жыл бұрын
Optimize those journeys you know/think are important for your app. Don't worry if you add those you mentioned. There's no right or wrong answer here though. If you'd cover all of the app, then you basically end up with full AOT, which can be slower, because can take longer to load the files from disk. You can run benchmarks and compare CompilationMode.None() = unoptimized (worst), CompilationMode.Partial() = with Baseline Profiles (best) CompilationMode.Full() = full AOT (should be better than None, but can be worse than Partial in bigger apps) You can run benchmark for app startup with Baseline Profile that covers everything you want and then generate a profile that covers less journeys and see if it has negative effect on startup time. But that's fine tuning, so if you haven't started with it yet, don't worry.
@vengateshm2122
@vengateshm2122 Жыл бұрын
@@mlykotom Thanks for the explanation
@niraj81
@niraj81 Жыл бұрын
Maybe you can add the initial journey in baseline profile and all the other optimization when the app starts for the first time. I don't know how to achieve this, just started Android development, let me know if you know how to do this.
@vengateshm2122
@vengateshm2122 Жыл бұрын
@@niraj81 Follow their codelabs.
@niraj81
@niraj81 Жыл бұрын
@@vengateshm2122 following one with the states now, they are the best
@RahulRawat-rj8ol
@RahulRawat-rj8ol Жыл бұрын
I m here
@eboy2118
@eboy2118 Жыл бұрын
Wish i can be there on those empty seats
@hsp3081
@hsp3081 25 күн бұрын
India English
Custom layouts and graphics in Compose
20:25
Android Developers
Рет қаралды 48 М.
Пробую самое сладкое вещество во Вселенной
00:41
Получилось у Вики?😂 #хабибка
00:14
ХАБИБ
Рет қаралды 5 МЛН
OMG😳 #tiktok #shorts #potapova_blog
00:58
Potapova_blog
Рет қаралды 3,5 МЛН
Sprinting with More and More Money
00:29
MrBeast
Рет қаралды 190 МЛН
Android app performance with Perfetto
1:53:47
Code with the Italians
Рет қаралды 6 М.
Make your app faster with Baseline Profiles Perfetto and more - Rahul Ravikumar
1:57:02
Inspecting Performance - MAD Skills
16:01
Android Developers
Рет қаралды 20 М.
Building an Android App with Gemini API : A Step-by-Step Guide
18:54
What's new in app performance
29:08
Android Developers
Рет қаралды 15 М.
How to Boost Your App's Performance With Baseline Profiles
16:56
Philipp Lackner
Рет қаралды 20 М.
Deep dive into Android Studio Profilers (Android Dev Summit '18)
41:28
Android Developers
Рет қаралды 40 М.
Most overpowered way to build mobile apps?
8:33
Beyond Fireship
Рет қаралды 723 М.
Creator of git, Linus Torvalds Presents the Fundamentals of git
1:10:15
Developers Alliance
Рет қаралды 12 М.
Обзор Sonos Ace - лучше б не выпускали...
16:33
Asus  VivoBook Винда за 8 часов!
1:00
Sergey Delaisy
Рет қаралды 1 МЛН
iOS 18 vs Samsung, Xiaomi,Tecno, Android
0:54
AndroHack
Рет қаралды 78 М.