monotonic time probe

This commit is contained in:
voidlizard 2024-11-01 08:34:48 +03:00
parent 389c842ad9
commit 2a7eebd34e
1 changed files with 7 additions and 0 deletions

View File

@ -1151,6 +1151,13 @@ runPeer opts = respawnOnError opts $ runResourceT do
peerThread "checkMetrics" (checkMetrics metrics metricsProbe)
t0 <- getTimeCoarse
peerThread "monotonicTime" $ forever do
pause @'Seconds 10
tx <- getTimeCoarse
acceptReport metricsProbe [("monotonicTime", fromIntegral (tx-t0) `div` round 1e9)]
peerThread "peerPingLoop" (peerPingLoop @e conf penv)
peerThread "knownPeersPingLoop" (knownPeersPingLoop @e conf (SomeBrains brains))