This message was deleted.
# performance
s
This message was deleted.
e
not sure what you're trying to measure, but perhaps try
./gradlew help --configuration-cache
?
e
We want a scenario that only execute the configuration phase.
./gradlew help
seems to work! The only issue is there is this log once the profiler pass from warm-up to measured builds 🤔
Calculating task graph as configuration cache cannot be reused because system property 'org.gradle.profiler.phase' has changed.
actually this is our code ☝️ we’re sending the phase to gradle enterprise build scan (via
var property = System.properties['org.gradle.profiler.phase']
). It should be fixed with
var property = providers.systemProperty("org.gradle.profiler.phase").getOrNull()
But there’s also this potential bug https://github.com/gradle/gradle/issues/19184 (looks like fixed in 8.1)
a
I think
./gradlew tasks
is also a good option, since it configures registered tasks. What is the reason you want to measure configuration phase with the configuration cache? Do you notice that configuration phase when there is a configuration cache hit is slow?
👍 1
Also note: gradle-profiler also sets some properties, so in some (a lot?) of cases is not cc friendly
e
So far it was quite effective to detect a change that would break configuration cache and even before configuration cache we were measuring the actual configuration time. It could be easy to introduce regressions with a change in gradle task or add a 3rd party plugin, etc… Having it’s own scenario make the signal clearer to read.
w
There is the
--measure-config-time
command line option that captures the configuration time no matter which task you run. I suggest you run a task you care about, so the loading from CC measurement is more relevant.