https://gradle.com/ logo
Join Slack
Powered by
# performance
  • s

    Slackbot

    05/19/2023, 6:08 AM
    This message was deleted.
    r
    d
    t
    • 4
    • 8
  • s

    Slackbot

    06/14/2023, 5:05 PM
    This message was deleted.
    a
    s
    • 3
    • 4
  • s

    Slackbot

    06/22/2023, 5:08 PM
    This message was deleted.
    p
    b
    • 3
    • 2
  • s

    Slackbot

    06/23/2023, 4:08 PM
    This message was deleted.
    c
    n
    • 3
    • 2
  • s

    Slackbot

    06/27/2023, 8:26 PM
    This message was deleted.
    c
    j
    +2
    • 5
    • 7
  • s

    Slackbot

    07/13/2023, 10:53 AM
    This message was deleted.
    a
    g
    +3
    • 6
    • 26
  • s

    Slackbot

    09/06/2023, 3:46 PM
    This message was deleted.
    ➕ 3
    p
    m
    • 3
    • 4
  • s

    Slackbot

    01/12/2024, 2:50 PM
    This message was deleted.
    t
    g
    • 3
    • 3
  • s

    Slackbot

    01/17/2024, 7:21 PM
    This message was deleted.
    a
    a
    • 3
    • 4
  • s

    Slackbot

    02/05/2024, 12:39 PM
    This message was deleted.
    e
    j
    +4
    • 7
    • 10
  • s

    Slackbot

    02/07/2024, 9:32 AM
    This message was deleted.
    e
    c
    +2
    • 5
    • 23
  • s

    Slackbot

    02/09/2024, 9:13 PM
    This message was deleted.
    j
    • 2
    • 2
  • s

    Slackbot

    02/19/2024, 10:27 AM
    This message was deleted.
    a
    a
    i
    • 4
    • 6
  • m

    Marcin Robaczyński

    03/06/2024, 3:14 PM
    Hi team! I was looking into a way to track local build times. I've noticed that BuildListener#buildFinished is now deprecated given that configuration-cache is enabled. What would be the best way to tackle this? Do you happen to know any other APIs for it? I feel like this approach might be a little bit too naive - and also it does not include configuration phase 🤔
    Copy code
    tasks.configureEach { task ->
        if (task.name.startsWith("assembleDebug")) {
            println "Track start time"
            task.doLast {
                println "Track end time"
            }
        }
    }
    Running benchmarks is of course an option but I wanted to see an overall trend on a day-to-day develoment among devs.
    a
    • 2
    • 5
  • a

    Arlind Hajredinaj

    03/18/2024, 9:16 AM
    Hi team, I have a team of 20 devs, we want to enable gradle build cache push for local development, so that when engineers open PRs we save on build time on CI machines as a means to reduce costs. On CI we already have push/pull enabled. Is there any issues with enabling push for build cache for local dev machines?
    t
    • 2
    • 1
  • m

    Marcin Laskowski

    04/23/2024, 10:56 AM
    hi 🙂 is there a easy way to get the RAM and CPU usage of a Gradle build, preferably through Gradle Profiler?
    g
    • 2
    • 1
  • i

    Ifrah Tahir

    05/19/2024, 6:12 PM
    Launching lib\main.dart on sdk gphone64 x86 64 in debug mode... Running Gradle task 'assembleDebug'... FAILURE: Build failed with an exception. * What went wrong: java.util.concurrent.ExecutionException: org.gradle.api.GradleException: Failed to create Jar file C:\Users\ICTFLARE\.gradle\caches\jars-9\25af9f93dc8b39fa0484de5e10be7606\gradle-7.3.0.jar.
    org.gradle.api.GradleException: Failed to create Jar file C:\Users\ICTFLARE\.gradle\caches\jars-9\25af9f93dc8b39fa0484de5e10be7606\gradle-7.3.0.jar.
    * Try:
    Run with --stacktrace option to get the stack trace.
    Run with --info or --debug option to get more log output.
    Run with --scan to get full insights.
    Get more help at https://help.gradle.org.
    BUILD FAILED in 4s Error: Gradle task assembleDebug failed with exit code 1
  • e

    Eug

    06/07/2024, 7:29 AM
    Hi people, we have a medium multymodule android project (~200 modules) with convention plugins and plugins in buildSrc. We started with gradle profiling clean cached and clean non cached builds. Additionally measured the Gradle 8.8 update. While I'm thinking about what scenarios to cover more (any hints are welcome), I have next observations-questions: 1. The max of clean uncached build is 4-5 minutes but I do remember waiting 8-9 mins in AS. Should I care about the numbers I remember? Is it possible that profile builds by far from the memory longes builds? 2. The 8.8 Gradle wins over 8.7 with 10 seconds in the clean cached and loses 16 seconds in the clean uncached. I would say that is comparable and acceptable. What would be the breaking threshold for you? Should it be relative or absolute?
    t
    • 2
    • 2
  • e

    Eug

    06/07/2024, 7:30 AM
    And any good resources or recommendations to follow/read?
  • h

    Hector Dearman

    07/15/2024, 6:30 PM
    Hi folks! I'm not that familiar with devlocity - I have .scandump file, is there anyway to view that without a Devlocity enterprise subscription?
    e
    • 2
    • 3
  • h

    Hector Dearman

    07/17/2024, 9:27 AM
    I discovered https://github.com/gradle/gradle-profiler which is amazing! The scenarios file covers everything I want which is so refreshing compared to bodging together random Python scripts. It even has chrometrace output so I can open the results in Perfetto https://ui.perfetto.dev/#!/?s=76f73d00b1f5161a5bc7ba076fd529dba2a2cb5c7ec0240676699e7b5a98381d. Folks did a great job 😃
    ❤️ 5
    • 1
    • 1
  • s

    Satyarth Sampath

    08/22/2024, 8:26 AM
    Hey folks what would be good way to profile the jvm used to run unit-tests? I tried running this using the gradle-profiler with async-profiler but I'm not sure if that leads to the test jvms being invoked with async-profiler enabled.
    g
    • 2
    • 1
  • z

    zhiqiang zhang

    09/03/2024, 6:06 AM
    https://gradle-community.slack.com/archives/C06JG95HREY/p1725342869133759
  • i

    Ian Brandt

    10/20/2024, 11:11 PM
    Greetings All, "An In-depth Look at Gradle's Approach to Faster Compilation" has the following footnote:
    Assuming a non-JPMS build, which may affect certain details.
    Does modularizing a build have any known performance impacts, positive or negative? For example, might module descriptor info be used to speed up ABI analysis for compilation avoidance when only a subset of the packages containing public API in a project are exported? Does
    java.modularity.inferModulePath
    add any significant overhead?
    a
    • 2
    • 3
  • a

    Alex B

    01/10/2025, 12:01 AM
    I'm trying to learn about our build performance. I have a particular build scan I'm looking to understand better (I don't know if build scans are shareable like that). More specifically I'm trying to understand the task parallelism (or rather the lack of it). Is this a good channel for that?
    e
    i
    • 3
    • 9
  • a

    Andrew Grosner

    03/07/2025, 6:24 PM
    recently in past couple months, our project’s sync time has gone from 1-2 mins to upwards of 6 minutes. in some build scans ive noticed quite a gap between time to sync (6 mins) with the last visible task of :`prepareKotlinBuildScriptModel` . i have to assume its the IDE model being built, but the scans completely do not track that gap. is there ways to grab more detailed metrics on why a gradle sync takes 6 mins? the build scans do not actually reveal the gaps or what happens in between each marker
    a
    • 2
    • 11
  • e

    Eug

    04/18/2025, 2:01 PM
    About profiler - the git checkout option - does it clean up deleted files? Let say I have commit where I delete some configuration files. And I do two scenarious - one with this files and one without. I wrote them with option git checkout. But I wonder now, if the checkout of newer commit also deletes files on filesystem.
  • e

    Eug

    04/18/2025, 2:01 PM
    But let me just run small gradle task locally and just see it
  • e

    Eug

    04/18/2025, 2:04 PM
    Also wonder does profiler runs scenarios in alphabetical order?
  • a

    Andrew Grosner

    04/24/2025, 7:52 PM
    has anyone had issues with multiple daemons spinning up out of nowhere? I mean im not building in the IDE, essentially,
    Copy code
    ./gradlew --stop
    No Gradle daemons are running.
    ./gradlew --stop
    Stopping Daemon(s)
    2 Daemons stopped
    nonstop. killing java process resuscitates the daemons. these extra "zombie" daemons do not persist on next run, and force more daemons to run.
    t
    m
    • 3
    • 10