Determining kernel memory allocation

This may be a dumb question or too open, but what am I looking for in the GHC kernel output to figure out where the memory allocation is? My motivation is to better understand how to optimize the code, for example, or, for example, to avoid exceptions in critical sections in parallel code.

+6
source share
1 answer

let is usually where this happens, assuming that the variable is a sign of id not of type # (i.e. let-bound Int# does not cause selection.) However, it is really an STG that determines exactly where it happens.

+4
source

All Articles