How to Boost Your App's Performance With Baseline Profiles

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

Комментарии • 58

  • @mohammadnawas5329
    @mohammadnawas5329 Год назад +12

    The thumbnail of this video is incredible 👏

  • @azaderahmati8593
    @azaderahmati8593 Год назад +2

    Thank you for sharing your information with the world, specially countries which doesn't have facilities for developers. You are the best developer and lecturer in the world.

  • @ezekielwachira1691
    @ezekielwachira1691 Год назад +6

    You forgot to paste the gradle command for configuration in the description.

  • @raheemadamboev
    @raheemadamboev Год назад +23

    :benchmark:pixel2Api31BenchmarkAndroidTest --rerun-tasks -P android.testInstrumentationRunnerArguments.class=xyz.teamgravity.benchmark.BaselineProfileGenerator

  • @CommanderSteps
    @CommanderSteps Год назад +6

    Thank you a lot for doing these videos. 🙏🏻 Performance tips are always very appreciated. 👍

  • @mr.bubble1657
    @mr.bubble1657 Год назад

    Thumbnail looks sickkkk....❤️❤️❤️
    It was soo tempting that i have to click the video even if i dont want to watch it now.

  • @BitMavrick
    @BitMavrick 6 месяцев назад

    Hey Philipp, I create a swipable tab row using horizontal pager with jetpack compose according to your video, My I have total 3 tabs, my second and third tabs has lots of composable files, when user swipe the tabs, the swipe performance is really bad, which is ruining my app performance. Can I get benefit from baseline profile? Please help. Love and respecet from Bangladesh.

  • @VeronikaDoma-f5y
    @VeronikaDoma-f5y Год назад

    Thank you Philipp!

  • @eduvgama
    @eduvgama Год назад

    Why cannot we pay in parcels your calories tracker app? For example the canvas course give us this possibility. Thanks.

  • @ВалерийМиннулин
    @ВалерийМиннулин 5 месяцев назад

    you didn't add dependency on profile installer. Is it not required ?

  • @diegoflassa
    @diegoflassa 6 месяцев назад

    I cannot find the string for the build.configuration in your description!

  • @Shishaaa88a
    @Shishaaa88a 11 месяцев назад

    If I have no Baselineprofile added, partial still gives better Results than None. None is not really good to compare against, as any App in Play Store uses partial. If you disable Baseline Profile from partial compilation Mode + Warm-up Iterations, its Always faster than Baseline....I dont get it. If I do require, it does throw no Error, even If no File was added. Help

  • @vahidgarousii
    @vahidgarousii Год назад

    Where is the task that you mention it in this video?

  • @salmanjawed98
    @salmanjawed98 Год назад

    A question. How did the test know which txt file to use. Did you specify it anywhere?

  • @anmolsinghsahi5612
    @anmolsinghsahi5612 Год назад +2

    Use jetpack compose because implementation of recycler list is easier.
    Performance slow: no worries write more code(baseline profiles), even more than you would have written for recycler view in XML views

    • @ryanfoster557
      @ryanfoster557 Год назад +2

      Baseline profiles make a big difference for XML and Compose apps. It's actually very interesting how this works under the hood I reccomend watching the talk from the developer summit.

    • @SuRPuiSSe
      @SuRPuiSSe Год назад +2

      And don't forget that BaselineProfileRule is experimental. 🙃
      So good to see that after a year in release, jectpack is composing uses so much stuff not ready for production.

  • @okeuwechue9238
    @okeuwechue9238 6 месяцев назад +1

    👍Thnx for the vid. Very very helpful indeed.
    In case anyone is getting the following log error when executing the Scrolling tests in their emulator:
    "...NullPointerException: Attempt to invoke virtual method 'void androidx.test.uiautomator.UiObject2.click()' on a null object reference"
    Inserting a delay instruction right above the click attempt should fix it. Like this:
    device.wait(Until.hasObject(By.text("Element 29")), 2000) //

  • @shivanichandel8967
    @shivanichandel8967 Год назад

    hi #Philipp Lackner is it possible to add another language keyboard programmatically in the kotlin application ?

  • @IulianGogoasa
    @IulianGogoasa Год назад +2

    I got the following error: Task 'pixel2Api31BenchmarkAndroidTest' not found in project ':benchmark'. Thanks!

    • @anmolsinghsahi7991
      @anmolsinghsahi7991 Год назад

      Please add the managed device configuration block in macrobenchmarks build.gradle

    • @josend
      @josend Год назад +1

      i have the same error. did you manage to fix it?

    • @AlexKind1917
      @AlexKind1917 Год назад

      I had same problem and fixed it. I made mistake in path. It was wronge package name. I named it Macrobenchmark.

  • @motivationsondemand
    @motivationsondemand Год назад

    Please Sir Make one video on This Topic👇
    How To Prevent Recreation Of Fragments While Navigating Back And Forth

  • @TheNdriqimm
    @TheNdriqimm Год назад

    Hey how can I start another activity besides the launcher with startActivityAndWait() ?

  • @dipeshsaini04
    @dipeshsaini04 Год назад

    helpful video to measure the performance of app.. highly benefit video ✌✌✌✌

  • @YashNagayach
    @YashNagayach Год назад

    I implemented baseline profile in my app(Using latest versions), it is showing some improvement when we run benchmark, but no improvement I can see on play console numbers for cold startup time in my production app. Any idea?

  • @yehor_zhyr
    @yehor_zhyr Год назад

    Thank you!

  • @events4089
    @events4089 Год назад

    Bro please tell how to navigate to back screen using state change

  • @mikemikee7797
    @mikemikee7797 Год назад

    Guys do you know whether it is possible to include multiple baseline profiles or just one? Can't find any information about it

  • @mustafaammar551
    @mustafaammar551 Год назад

    Very cool video thank you bro 👍👍👍

  • @SiddhantSingh-p7j
    @SiddhantSingh-p7j 9 месяцев назад

    hey philip i am getting this error when i am trying to build the application could you please help me out
    Cannot locate tasks that match ':benchmark:pixel2Api31BenchmarkAndroidTest' as task 'pixel2Api31BenchmarkAndroidTest' not found in project ':benchmark'.

    • @seifmohamed8029
      @seifmohamed8029 8 месяцев назад

      did you solve this issue?

    • @wilmermolinac
      @wilmermolinac 8 месяцев назад

      hi, use
      testOptions{
      managedDevices{
      devices{
      create("pixel2Api31", ManagedVirtualDevice::class){
      device = "Pixel 2"
      apiLevel = 31
      systemImageSource = "aosp"
      }
      }
      }
      }

    • @wilmermolinac
      @wilmermolinac 8 месяцев назад

      @@seifmohamed8029 hi, use
      testOptions{
      managedDevices{
      devices{
      create("pixel2Api31", ManagedVirtualDevice::class){
      device = "Pixel 2"
      apiLevel = 31
      systemImageSource = "aosp"
      }
      }
      }
      }

  • @MrNDQuattro
    @MrNDQuattro Год назад +1

    did you mean 'How to boost your tests performance' cause we cant use Baseline Profiles in production ... can we?

    • @PhilippLackner
      @PhilippLackner  Год назад +1

      No this is for your production app

    • @MrNDQuattro
      @MrNDQuattro Год назад

      ​@@PhilippLackner oh my god, i'm gonna cry

    • @farazahmed7
      @farazahmed7 Год назад

      @@MrNDQuattro then cry

  • @mohammadtaqi4051
    @mohammadtaqi4051 Год назад

    Where's that long screen? 9:02

  • @mehulbisht9708
    @mehulbisht9708 Год назад +1

    noticed that the slack app on your Pixel does not have the Material You theming applied to it as the other apps do, update it to the latest version, they've added the support for it now 🙂
    Hope all apps add it gradually, applying the palette and seeing some apps not opting in for it feels like an eyesore 😅

  • @mammadderakhshan6032
    @mammadderakhshan6032 Год назад

    I'm not sure what I'm doing wrong, but when I use "BLACK" it gives me the error: "Coupon not found or expired"

  • @Kahani_sunoooooo
    @Kahani_sunoooooo Год назад

    Thumbnail 🤌

  • @jopadjr
    @jopadjr Год назад

    147th...Thanks Philipp.

  • @rupeshjadhav7284
    @rupeshjadhav7284 Год назад

    Great opportunity for developers who do not have min required system

  • @1mYse1LF
    @1mYse1LF Год назад

    Thank you

  • @karimelbahi1725
    @karimelbahi1725 Год назад

    Thanks for this video!
    I found out that the next first one is faster although it is without the baseline profile? any idea?
    @Test
    fun startupCompilationPartialWithoutBaselineProfiles() = startup(
    CompilationMode.Partial(
    baselineProfileMode = BaselineProfileMode.Disable,
    warmupIterations = 1
    )
    )
    @Test
    fun startupCompilationPartialWithBaselineProfiles() =
    startup(CompilationMode.Partial(baselineProfileMode = BaselineProfileMode.Require))

    • @YashNagayach
      @YashNagayach Год назад

      I implemented baseline profile in my app(Using latest versions), 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?

  • @SiddhantSingh-p7j
    @SiddhantSingh-p7j 9 месяцев назад

    Hey Philipp, when i am trying to run the gradle script i am getting this error
    :benchmark:pixel2Api31BenchmarkAndroidTest --rerun-tasks -P android.testInstrumentationRunnerArguments.class=xyz.teamgravity.benchmark.BaselineProfileGenerator
    can you pleaseee help me out

    • @wilmermolinac
      @wilmermolinac 8 месяцев назад

      hi, change this xyz.teamgravity.benchmark.BaselineProfileGenerator to your package name