gradle-profiler
gradle-profiler copied to clipboard
Make warmup parameter more customizable
I'd like to be able to set warmup to be 0. Currently the minimum is 1.
It should be my decision because:
- maybe I want to test on current temperatures
- if it's a Laptop, warming it up more might defy the purpose of my testing
Also warmup for the 2nd and later measured builds seem unnecessary to me since we're already warmed up. Consecutive warmups make the machine uselessly hot and slow if it's e.g. a laptop. Maybe it's not what I want to be measuring, so skipping those warmups is what I would like for my test.
Our plugin is expericning OOM issues and the only build I can reliably reproduce it on takes 3 hours to build. I'd really like to skip the warmup part and just profile the heap with async profiler (also not even sure if warmup makes sense for heap profiling)
I want to add that the most simple case of profiling a build will always warm up not only the daemon, but also the project, giving UP-TO-DATE tasks everywhere. But there is no simple commandline option for cleanup-tasks, so the "Advanced profiling scenarios" have to be used even in the most simplest cases.