mirror of
https://github.com/monero-project/monero.git
synced 2026-07-28 14:47:15 -07:00
Merge pull request #10896
159b6b6 common: increase performance timer buffer size (selsta)
ACKs: jeffro256, tobtoht
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user