Skip to main content
Post Made Community Wiki by Paul Sweatte
Source Link

There is the --profile option:

If we want to know more about how much time is spent in tasks we can use the --profile command-line option. Gradle will generate a report file in the build/reports/profile directory. This report file is a HTML file with information about how much time is spent by the different tasks and processes of Gradle.

As well as the gradle profiler:

A tool to automate the gathering of profiling and benchmarking information for Gradle builds. Profiling information can be captured using several different tools...

References