@@ -1362,14 +1362,13 @@ LedgerManagerImpl::recordTxSubmission(Hash const& contentsHash)
13621362}
13631363
13641364void
1365- LedgerManagerImpl::recordTxMetaEmissionLatency (
1366- ApplicableTxSetFrame const & txSet)
1365+ LedgerManagerImpl::recordTxE2eLatency (ApplicableTxSetFrame const & txSet)
13671366{
13681367 if (!mApp .getConfig ().LOADGEN_MEASURE_TX_E2E_LATENCY_FOR_TESTING )
13691368 {
13701369 return ;
13711370 }
1372- VirtualClock::time_point const emitTime = mApp .getClock ().now ();
1371+ VirtualClock::time_point const applyEndTime = mApp .getClock ().now ();
13731372 MutexLocker guard (mTxLatencyMetrics .mMutex );
13741373 for (auto const & phase : txSet.getPhases ())
13751374 {
@@ -1379,7 +1378,7 @@ LedgerManagerImpl::recordTxMetaEmissionLatency(
13791378 tx->getContentsHash ());
13801379 submitted != mTxLatencyMetrics .mTxSubmitTimes .end ())
13811380 {
1382- auto const latency = emitTime - submitted->second ;
1381+ auto const latency = applyEndTime - submitted->second ;
13831382 mTxLatencyMetrics .mTxsExternalized .inc ();
13841383 int64_t const ms =
13851384 std::chrono::duration_cast<std::chrono::milliseconds>(
@@ -2032,7 +2031,7 @@ LedgerManagerImpl::applyLedger(LedgerCloseData const& ledgerData,
20322031#ifdef BUILD_TESTS
20332032 maybeSimulateSleep (mApp .getConfig (), txSet->sizeOpTotalForLogging (),
20342033 applyLedgerTime, mApplySleepRng );
2035- recordTxMetaEmissionLatency (*applicableTxSet);
2034+ recordTxE2eLatency (*applicableTxSet);
20362035#endif
20372036
20382037 // Steps 6, 7, 8 are done in `advanceLedgerStateAndPublish`
0 commit comments