File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
ghcide/src/Development/IDE/Core Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -100,18 +100,19 @@ performMeasurement logger stateRef instrumentFor mapCountInstrument = do
100
100
withSpan_ " Measure length" $ readVar stateRef >>= observe mapCountInstrument . length
101
101
102
102
values <- readVar stateRef
103
- let keys = nub
104
- $ Key GhcSession : Key GhcSessionDeps
105
- : [ k | (_,k) <- HMap. keys values
103
+ let keys = Key GhcSession
104
+ : Key GhcSessionDeps
105
+ : [ k | (_,k) <- HMap. keys values
106
106
-- do GhcSessionIO last since it closes over stateRef itself
107
- , k /= Key GhcSessionIO ]
108
- ++ [Key GhcSessionIO ]
107
+ , k /= Key GhcSession
108
+ , k /= Key GhcSessionDeps
109
+ , k /= Key GhcSessionIO
110
+ ] ++ [Key GhcSessionIO ]
109
111
! groupedForSharing <- evaluate (keys `using` seqList r0)
110
112
measureMemory logger [groupedForSharing] instrumentFor stateRef
111
113
`catch` \ (e:: SomeException ) ->
112
114
logInfo logger (" MEMORY PROFILING ERROR: " <> fromString (show e))
113
115
114
- {-# ANN startTelemetry ("HLint: ignore Use nubOrd" :: String) #-}
115
116
116
117
type OurValueObserver = Int -> IO ()
117
118
You can’t perform that action at this time.
0 commit comments