Skip to content

RTS does not emit ticky counter samples into eventlog

Summary

RTS does not emit ticky counter samples into eventlog when compiled and linked with necessary flags.

I discovered this issue while working on nofib#10

Steps to reproduce

Compile a hello-world program with

ghc -eventlog -ticky -ticky-allocd -ticky-dyn-thunk -rtsopts HelloWorld.hs --make -fforce-recomp

then run it

./HelloWorld +RTS -lT

check the eventlog

ghc-events show HelloWorld.eventlog

Observe that event 211 EVENT_TICKY_COUNTER_SAMPLE is missing in the eventlog.

Expected behavior

EVENT_TICKY_COUNTER_SAMPLE is present in the eventlog.

Environment

  • GHC version used: 9.1.0.20201210
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information