Track execution time per task in gradle script?

后端 未结 8 2127
深忆病人
深忆病人 2021-01-30 06:37

What is the most elegant way to track the execution times on how long a task took in a gradle build script? In an optimal case log the time directly same or next line to the tas

8条回答
  •  鱼传尺愫
    2021-01-30 07:15

    The cleanest solution is to implement a TaskExecutionListener (I'm sure you can handle that part) and register it with gradle.taskGraph.addTaskExecutionListener.

提交回复
热议问题