gradle-profiler icon indicating copy to clipboard operation
gradle-profiler copied to clipboard

Feature request: a `run` mutation

Open ZacSweers opened this issue 3 years ago • 3 comments

While there are a number of mutations today for defining scenarios, we've found them unhelpful in some cases due to either being too trivial or too limiting. I'd like to propose a new run mutation that would act similar to git bisect run, where an arbitrary shell script + any arguments is given. This would be invoked before each iteration to apply a set of changes handled by the script.

One example where we would want to use this is to apply changes that would specifically change the dependency graph in a build profiling Dagger, such as adding a parameter to an injected class's constructor. This would give flexibility for scenario authors to profile specific cases unique to their build.

ZacSweers avatar Jul 05 '21 19:07 ZacSweers

If you're open to this, I'd gladly look at contributing a PR for this

ZacSweers avatar Jul 05 '21 19:07 ZacSweers

@ZacSweers Is this PR more or less what you are looking for? https://github.com/gradle/gradle-profiler/pull/310

wolfs avatar Jul 14 '21 06:07 wolfs

Yup that's exactly what I'm looking for 👍

ZacSweers avatar Jul 14 '21 13:07 ZacSweers