How to Boost Your App's Performance With Baseline Profiles

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

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

  • @mohammadnawas5329
    @mohammadnawas5329 2 года назад +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.

  • @CommanderSteps
    @CommanderSteps 2 года назад +6

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

  • @mr.bubble1657
    @mr.bubble1657 2 года назад

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

  • @ezekielwachira1691
    @ezekielwachira1691 2 года назад +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

  • @VeronikaDoma-f5y
    @VeronikaDoma-f5y 2 года назад

    Thank you Philipp!

  • @anmolsinghsahi5612
    @anmolsinghsahi5612 2 года назад +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 года назад +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.

  • @dipeshsaini04
    @dipeshsaini04 2 года назад

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

  • @motivationsondemand
    @motivationsondemand 2 года назад

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

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

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

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

    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

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

    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.

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

    Where is the task that you mention it in this 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?

  • @okeuwechue9238
    @okeuwechue9238 7 месяцев назад +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) //

  • @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.

  • @salmanjawed98
    @salmanjawed98 2 года назад

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

  • @eduvgama
    @eduvgama 2 года назад

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

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

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

  • @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

  • @yehor_zhyr
    @yehor_zhyr 2 года назад

    Thank you!

  • @mustafaammar551
    @mustafaammar551 2 года назад

    Very cool video thank you bro 👍👍👍

  • @TheNdriqimm
    @TheNdriqimm 2 года назад

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

  • @shivanichandel8967
    @shivanichandel8967 2 года назад

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

  • @events4089
    @events4089 2 года назад

    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

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

    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 9 месяцев назад

      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"
      }
      }
      }
      }

  • @mehulbisht9708
    @mehulbisht9708 2 года назад +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 2 года назад

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

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

    Where's that long screen? 9:02

  • @Kahani_sunoooooo
    @Kahani_sunoooooo 2 года назад

    Thumbnail 🤌

  • @jopadjr
    @jopadjr 2 года назад

    147th...Thanks Philipp.

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

    Thank you

  • @rupeshjadhav7284
    @rupeshjadhav7284 2 года назад

    Great opportunity for developers who do not have min required system

  • @karimelbahi1725
    @karimelbahi1725 2 года назад

    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 10 месяцев назад

    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