isInstrumentationTarget

fun IrFunction.isInstrumentationTarget(annotation: FqName, killSwitch: FqName): Boolean(source)

Whether this function is a target of the instrumentation driven by annotation: it must have a body, not be disabled by killSwitch (on the function or its class — the per-class opt-out wins over any annotation), and either carry annotation itself or be an eligible member (see isClassLevelEligible) of a class annotated with it.

Shared by the @Logged/@Timed/@Traced transformers, paired with their respective @NoLog/@NoTime/@NoTrace kill switches.