Is there a way to tell if a function was `@inline`’d?

Is there a way to tell if a function was @inline’d?

Note that the original poster on Slack cannot see your response here on Discourse. Consider transcribing the appropriate answer back to Slack, or pinging the poster here on Discourse so they can follow this thread.
(Original message :slack:) (More Info)

answer from Matt Bauman on Slack

Best way I’m aware of is to @code_typed an outer function and see if the inner function disappears when you go from optimize=false to true .

4 Likes