Skip to content

Commit ad1fb0d

Browse files
committed
register gc metrics locally
1 parent 088db2a commit ad1fb0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ghcide/src/Development/IDE/Main.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ defaultMain recorder Arguments{..} = withHeapStats (cmapWithPrio LogHeapStats re
363363
log Warning LogOnlyPartialGhc9Support
364364
server <- fmap join $ for argsMonitoringPort $ \p -> do
365365
store <- Monitoring.newStore
366+
Monitoring.registerGcMetrics store
366367
let startServer = Monitoring.forkServerWith store "localhost" (fromIntegral p)
367368
-- this can fail if the port is busy, throwing an async exception back to us
368369
-- to handle that, wrap the server thread in an async

0 commit comments

Comments
 (0)