diff options
author | Arnab Sen <arnabsen1729@gmail.com> | 2021-09-03 18:46:13 +0530 |
---|---|---|
committer | Arnab Sen <arnabsen1729@gmail.com> | 2021-11-28 11:34:44 +0530 |
commit | a26e8eef43c5ff0f4a5cd44d1d331a7bd72564a5 (patch) | |
tree | c68d455a2072645ab0d6678e811a14afaa2aad4c /src | |
parent | 4f8b1f8759301d2553183e14f72444a0f1d80725 (diff) |
[tracing] tracepoint for utxocache flushes
Signed-off-by: Arnab Sen <arnabsen1729@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/validation.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index c96adb77ff..7a14218b5c 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -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). |