Identify the current HEC for a function in Haskell

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?

+5
source share
1 answer

You can find out which function (i.e. the processor core) works with the Haskell thread by calling threadCapabilityfrom Control.Concurrent.

+RTS -N, (HEC), , threadCapability, , forkIO . , , +RTS -Nn, n - , , , , .

ThreadScope, .

+4

All Articles