Skip to content

[log] improve timestamp scalability and increase LogBuffer size

std::localtime takes a global lock and is therefore not scalable and inapplicable for analyzing timing sensible bugs. Introduce a new option to add UTC timestamps. This allows on my system to double the CPU load while using mmapped logging.

Also increase the LogBuffer size from 1MB to 1GB because I had some crashes where a renewed buffer was still used.

Merge request reports

Loading