Merge pull request #10896

159b6b6 common: increase performance timer buffer size (selsta)

ACKs: jeffro256, tobtoht
This commit is contained in:
tobtoht
2026-07-22 16:09:42 +00:00
+1 -1
View File
@@ -144,7 +144,7 @@ LoggingPerformanceTimer::~LoggingPerformanceTimer()
const bool log = ELPP->vRegistry()->allowed(level, cat.c_str());
if (log)
{
char s[12];
char s[24];
snprintf(s, sizeof(s), "%8llu ", (unsigned long long)(ticks_to_ns(ticks) / (1000000000 / unit)));
size_t size = 0; for (const auto *tmp: *performance_timers) if (!tmp->paused || tmp==this) ++size;
PERF_LOG_ALWAYS(level, cat.c_str(), "PERF " << s << std::string(size * 2, ' ') << " " << name);