Project

General

Profile

Bug #12725

Updated by Fran├žois ARMAND over 1 year ago

In the policy generation, we have a big black box in term of time measurement: writeTemplate 
 This method uses the biggest part of the generation time (more than 80%), but we have little to no detail of which steps are slow 

 We need to add real timing info in this method, to measure what is slow 


 First studies give a very interesting result 
 [2018-05-31 16:15:49] DEBUG policy.generation - Promises move to final position in 11317 ms out of [2018-05-31 16:16:05] DEBUG com.normation.rudder.services.policies.PromiseGenerationServiceImpl - Write node configurations :        41423 ms 

 The logger used for that is named: *policy.generation*: 

 <pre> 
   <logger name="policy.generation" level="debug"/> 
 </pre> "policy.generation"

Back