… are logged There seems to be multiple bugs in the Ruby compile where optimizations have caused flags that tracepoint relies on to be missed. I reported one in [1] which was fixed, but the calls and returns still didn't add up so there may be more. [1] https://github.com/ruby/ruby/blob/trunk/compile.c#L2704