Hi Emmanuel, That's an interesting option.
Regards, Pierre-Arnaud On 8 mai 2013, at 12:48, Emmanuel Lécharny <[email protected]> wrote: > Hi guys, > > FYI, I have added some timing for each operation. This is not activated > by default you have to modify the log4j.properties to get it : > > log4j.logger.org.apache.directory.server.OPERATION_TIME=DEBUG > > will produces such logs : > > [12:41:28] DEBUG [org.apache.directory.server.OPERATION_TIME] - Add > operation took 28404000 ns > [12:41:28] DEBUG [org.apache.directory.server.OPERATION_TIME] - Lookup > operation took 500000 ns > [12:41:28] DEBUG [org.apache.directory.server.OPERATION_TIME] - Lookup > operation took 278000 ns > [12:41:28] DEBUG [org.apache.directory.server.OPERATION_TIME] - Lookup > operation took 590000 ns > [12:41:28] DEBUG [org.apache.directory.server.OPERATION_TIME] - Bind > operation took 7820000 ns > [12:41:28] DEBUG [org.apache.directory.server.OPERATION_TIME] - Unbind > operation took 81000 ns > [12:41:28] DEBUG [org.apache.directory.server.OPERATION_TIME] - Lookup > operation took 305000 ns > [12:41:28] DEBUG [org.apache.directory.server.OPERATION_TIME] - Bind > operation took 94000 ns > [12:41:28] DEBUG [org.apache.directory.server.OPERATION_TIME] - Unbind > operation took 22000 ns > ... > > This could be useful for gathering the operation and tell how much time > it took to process eah operation. > > I'm considering offering more information, like the specific operation, > but this would be much verbose. > > I will commit that soon. > > -- > Regards, > Cordialement, > Emmanuel Lécharny > www.iktek.com >
