mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
[tracing] tracepoint for utxocache flushes
Signed-off-by: Arnab Sen <arnabsen1729@gmail.com>
This commit is contained in:
parent
4f8b1f8759
commit
a26e8eef43
3 changed files with 129 additions and 0 deletions
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue