gradle-circle-style icon indicating copy to clipboard operation
gradle-circle-style copied to clipboard

[FR] Automatically capture reports from ./gradlew --profile on CI

Open iamdanfox opened this issue 6 years ago • 5 comments

Running ./gradlew --profile <task> locally is a super helpful way to diagnose slowness, but it seems to always output the nice HTML report to the build/reports/profile directory.

I'd like to add --profile to all my tasks on CI because profiling is pretty cheap and it's interesting to be able to click through and see whether there's low-hanging fruit. Currently, I'd need to add a bunch of nasty lines of bash to copy these reports into the $CIRCLE_ARTIFACTS directory.

As an alternative, what do you think about making this gradle plugin detect the --profile flag and add it's own version of the ReportGeneratingProfileListener which writes to the $CIRCLE_ARTIFACTS directory?

iamdanfox avatar Jun 28 '18 13:06 iamdanfox