ghc-heap-view 0.3.0.2 → 0.3.0.3
raw patch · 2 files changed
+11/−2 lines, 2 filesdep ~base
Dependency ranges changed: base
Files
- ghc-heap-view.cabal +2/−2
- src/GHC/HeapView.hs +9/−0
ghc-heap-view.cabal view
@@ -1,5 +1,5 @@ Name: ghc-heap-view-Version: 0.3.0.2+Version: 0.3.0.3 Synopsis: Extract the heap representation of Haskell values and thunks Description: This library provides functions to introspect the Haskell heap, for example@@ -28,7 +28,7 @@ Exposed-modules: GHC.HeapView Default-Language: Haskell2010 Build-depends:- base == 4.5.*,+ base >= 4.5 && < 4.7, ghc C-Sources: cbits/HeapView.c cbits/HeapViewPrim.cmm Hs-source-dirs: src/
src/GHC/HeapView.hs view
@@ -287,6 +287,11 @@ , fun :: Box , payload :: [Box] } |+ APStackClosure {+ info :: StgInfoTable + , fun :: Box+ , payload :: [Box]+ } | BCOClosure { info :: StgInfoTable , instrs :: Box@@ -349,6 +354,7 @@ allPtrs (BlackholeClosure {..}) = [indirectee] allPtrs (APClosure {..}) = fun:payload allPtrs (PAPClosure {..}) = fun:payload+allPtrs (APStackClosure {..}) = fun:payload allPtrs (BCOClosure {..}) = [instrs,literals,bcoptrs] allPtrs (ArrWordsClosure {..}) = [] allPtrs (MutArrClosure {..}) = mccPayload@@ -507,6 +513,9 @@ (fromIntegral $ wds !! 2) (fromIntegral $ shiftR (wds !! 2) (wORD_SIZE_IN_BITS `div` 2)) (head ptrs) (tail ptrs)++ AP_STACK ->+ return $ APStackClosure itbl (head ptrs) (tail ptrs) THUNK_SELECTOR -> return $ SelectorClosure itbl (head ptrs)