heapview | node heap dump visualizer | Code Inspection library
kandi X-RAY | heapview Summary
kandi X-RAY | heapview Summary
node heap dump visualizer. Heapview is a tool to help you out in post mortem debugging scenarios. It's currently under development.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of heapview
heapview Key Features
heapview Examples and Code Snippets
Community Discussions
Trending Discussions on heapview
QUESTION
I've been trying to ensure the strictness of an in-memory model of a Haskell program using ghc-heap-view package and the utils it provides when I noticed that my HashMap
s don't seem to be in NF upon a series on inserts. I tried printing Heap tree and indeed it shows some thunks. I then tried another way of inserting elements (using union
and singleton
) and this time it comes out strict.
Could somebody please explain why is this so and advise if there's anything I can do to make insert
behave the same way as the other method?
Here's my test code:
...ANSWER
Answered 2019-May-06 at 20:49When inserting a new, non-colliding key into a Leaf
node, insert
uses a helper function called two
to generate a two-element map. The two
function is lazy in the values of the keys, which leads to GHC creating thunks to create the two new Leaf
nodes. This whole thing is pretty silly, because the keys are actually certain to be in WHNF by then. But (presumably because of a recursive go
function) GHC doesn't realize that. The problem should be fixed in the next version of unordered-containers
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install heapview
Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page