Skip to content

Commit

Permalink
register gc metrics locally
Browse files Browse the repository at this point in the history
  • Loading branch information
pepeiborra committed Oct 28, 2021
1 parent d5a1af9 commit dfbb4a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ghcide/src/Development/IDE/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ defaultMain Arguments{..} = do

server <- fmap join $ for argsMonitoringPort $ \p -> do
store <- Monitoring.newStore
Monitoring.registerGcMetrics store
let startServer = Monitoring.forkServerWith store "localhost" (fromIntegral p)
-- this can fail if the port is busy, throwing an async exception back to us
-- to handle that, wrap the server thread in an async
Expand Down

0 comments on commit dfbb4a4

Please sign in to comment.