logo
首页技术栈工具库讨论
ghc-heap-view

ghc-heap-view

This library provides functions to introspect the Haskell heap, for example to investigate sharing and lazy evaluation. It has been inspired by (and taken code from) the vacuum package and the GHCi debugger, but also allows to investiage thunks and other closures. This package also provides a new GHCi-command, :printHeap, which allows you to inspect the current heap representation of a value, including sharing and cyclic references. To enable the command, you need to load the included ghci script or add it to ~/.ghci, as explained by cabal install. Once it is set up, you can do this: You can change the maximum recursion depth using :setPrintHeapDepth: If the view is impaired by blackholes (written _bh), running System.Mem.performGC usually helps. The work on this package has been supported by the Deutsche Telekom Stiftung (http://telekom-stiftung.de).
由 
bruceshi2021-01-14 收录
--
推荐
不推荐
更多信息
HACKAGE
carbal install ghc-heap-view
查看
标签
根据用户添加的标签生成
暂无标签