Skip to content

Commit ab27800

Browse files
committed
log: Remove unnecessary timing logs for Callbacks bench
Logging of Callbacks are no longer needed and records events that are not relevant for performance analysis.
1 parent 971cad4 commit ab27800

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/validation.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,6 @@ static int64_t nTimeForks = 0;
15681568
static int64_t nTimeVerify = 0;
15691569
static int64_t nTimeConnect = 0;
15701570
static int64_t nTimeIndex = 0;
1571-
static int64_t nTimeCallbacks = 0;
15721571
static int64_t nTimeTotal = 0;
15731572
static int64_t nBlocksTotal = 0;
15741573

@@ -1873,9 +1872,6 @@ bool CChainState::ConnectBlock(const CBlock& block, BlockValidationState& state,
18731872
int64_t nTime5 = GetTimeMicros(); nTimeIndex += nTime5 - nTime4;
18741873
LogPrint(BCLog::BENCH, " - Index writing: %.2fms [%.2fs (%.2fms/blk)]\n", MILLI * (nTime5 - nTime4), nTimeIndex * MICRO, nTimeIndex * MILLI / nBlocksTotal);
18751874

1876-
int64_t nTime6 = GetTimeMicros(); nTimeCallbacks += nTime6 - nTime5;
1877-
LogPrint(BCLog::BENCH, " - Callbacks: %.2fms [%.2fs (%.2fms/blk)]\n", MILLI * (nTime6 - nTime5), nTimeCallbacks * MICRO, nTimeCallbacks * MILLI / nBlocksTotal);
1878-
18791875
TRACE7(validation, block_connected,
18801876
block.GetHash().ToString().c_str(),
18811877
pindex->nHeight,

0 commit comments

Comments
 (0)