Avoid some function call overhead in tracing.
Could still be better optimised by counting the number of each kind of
call that exist and moving this check into the call site.