dsdb: Log the transaction duraton.
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 6 Jun 2018 13:30:44 +0000 (15:30 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 25 Jun 2018 09:16:18 +0000 (11:16 +0200)
commitb282bcbb759bbb12797922e066aeb12c0df5b2f1
treea6bd4e5c97648abd80a9e056607e7d8ae151009c
parent1bb2a1c6b3eaccf114ac3f3b5b51f57828a04996
dsdb: Log the transaction duraton.

This is not a general purpose profiling solution, but these JSON
logs are already being generated and stored, so this is worth adding.

This will allow administrators to identify long running
transactions, and identify potential performance bottlenecks.

This complements a similar patch set to log authentication duration.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Jun 25 11:16:18 CEST 2018 on sn-devel-144
python/samba/tests/audit_log_base.py
python/samba/tests/audit_log_dsdb.py
source4/dsdb/samdb/ldb_modules/audit_log.c
source4/dsdb/samdb/ldb_modules/tests/test_audit_log.c