[tracing] tracepoint for utxocache flushes

Signed-off-by: Arnab Sen <arnabsen1729@gmail.com>
This commit is contained in:
Arnab Sen
2021-09-03 18:46:13 +05:30
parent 4f8b1f8759
commit a26e8eef43
3 changed files with 129 additions and 0 deletions

View File

@@ -2101,6 +2101,14 @@ bool CChainState::FlushStateToDisk(
nLastFlush = nNow;
full_flush_completed = true;
}
TRACE6(utxocache, flush,
(int64_t)(GetTimeMicros() - nNow.count()), // in microseconds (µs)
(u_int32_t)mode,
(u_int64_t)coins_count,
(u_int64_t)coins_mem_usage,
(bool)fFlushForPrune,
(bool)fDoFullFlush
);
}
if (full_flush_completed) {
// Update best block in wallet (so we can detect restored wallets).