I am writing a parallel Haskell program using Strategies. It does not do what it should do, and I would like to check which Haskell (HEC) execution context function is executing.
Is there a getHEC call or something similar that I could use in my debug output?
You can find out which function (i.e. the processor core) works with the Haskell thread by calling threadCapabilityfrom Control.Concurrent.
threadCapability
Control.Concurrent
+RTS -N, (HEC), , threadCapability, , forkIO . , , +RTS -Nn, n - , , , , .
+RTS -N
forkIO
+RTS -Nn
n
ThreadScope, .