cdsap / Talaiot

Simple and extensible plugin to track task times in your Gradle Project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Starting time at configuration phase

cdsap opened this issue · comments

In Talaiot < 2.0 we were able to determine the exact moment of configuration phase started through the build listener.

The new implementation relies on the BuildService mechanism. We are defining the start of the build at the initialization of the BuildService:

init {
   start = System.currentTimeMillis()
}

This value is correct for the execution time, but not for the configuration time because the BuildService is implemented with the interface onTaskCompletion. The configuration time happens before the instantiation of the BuildService.
I tried to add a new parameter for the Service, but once the configuration is reused the value provided in the service is the same as the build populating the configuration cache.

addressed in #378
The value for configuration time when is hit will be 0.