Talaiot icon indicating copy to clipboard operation
Talaiot copied to clipboard

Starting time at configuration phase

Open cdsap opened this issue 2 years ago • 0 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.

cdsap avatar Jun 15 '22 11:06 cdsap