Comments (5)
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=0
should not surprise people.
from gradle-profiler.
Could you elaborate what use case you have for 0 warmups?
from gradle-profiler.
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.
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.
@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)
- Grdle
- Android Studio sync fails with Android Studio Hedgehog, 2023.1.1 Canary 14 HOT 1
- ClearConfigurationCacheStateMutator incorrectly hardcodes the location of configuration-cache HOT 2
- Document `GRADLE_PROFILER_OPTS`
- `GRADLE_OPTS` not being used with `run-using = cli` HOT 2
- Add support for `jfrsync` with `async-profiler` HOT 1
- Sync profiling with Android Studio fails in the headless mode with Hedgehog and Iguana HOT 1
- When _can_ `ClearBuildCacheMutator(BUILD)` be used? HOT 1
- Add Android Studio sync integration test with a basic Android project
- Automate testing Android Studio previews
- ApplyAbiChangeToKotlinSourceFileMutator doesn't put separator HOT 1
- Android Studio sync benchmark times out on larger projects HOT 1
- Android Studio Jellyfish Canary 2 can't load GradleProfilerStartupActivity HOT 4
- Evaluate and possibly use `intellij-ide-starter` for AS sync logic
- How to create the profiling scenarios for different JDK versions HOT 1
- Issue with configuration cache and gradle 8.3
- Strings written into Chrome trace JSON output are not escaped properly
- Difficulty Running Android Studio Sync Benchmark in Headless Docker Environment HOT 2
- Make profile output directory customizable HOT 2
- Add support for profiling Gradle syncs with IntelliJ 2023.3+
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-profiler.