Git Product home page Git Product logo

Comments (5)

wisechengyi avatar wisechengyi commented on May 21, 2024 4

I understand. Although my second point should be still valid, i.e. it makes sense for warmup to have non zero default, but there is no need to force warmup runs, and --warmups=0should not surprise people.

from gradle-profiler.

oehme avatar oehme commented on May 21, 2024

Could you elaborate what use case you have for 0 warmups?

from gradle-profiler.

wisechengyi avatar wisechengyi commented on May 21, 2024

Sure! In a separate thread, we were trying to figure out what the performance issue is for gradle after git clean -fdx in the android repo. The issue only occurs on the first run, because the second run will be all up to date. In this case, having 'clean' task as the clean up task does not work because ./gradlew clean isn't the same as git clean -fdx

It does make sense to me that warmups has a non zero default value, but since it is an option, specifying --warmups=0 should work as expected as well.

from gradle-profiler.

oehme avatar oehme commented on May 21, 2024

I remember the problem you were looking for was in buildSrc. The Gradle profiler will already start up Gradle to determine what version you are running on and what extra JVM args your build specifies. So buildSrc will already be warmed up, even before the first "warmup run".

I think for analysing this special case, you might want to add the agentpath for JProfiler/YourKit to the Gradle JVM args by hand and profile "the old fashioned way". The Gradle profiler isn't really suited for this kind of "first use" analysis at the moment.

from gradle-profiler.

charlesritchea avatar charlesritchea commented on May 21, 2024

@oehme My use case is simple. My build takes a long time (long running e2e test), so I don't want to run it more than once.

from gradle-profiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.