You should know the class in which the method is defined, then you can access the CompiledMethod
via, eg,
theClass >> methodSelectorSymbol
or
theClass compiledMethodAt: methodSelectorSymbol
with theClass
being the class with the method and methodSelectorSymbol
is the Symbol that corresponds to the method, ie, your input.
There are further approaches, too.
For example,
theClass lookupSelector: methodSelectorSymbol
not only searches in theClass
but also in its superclasses.
However, all approaches require that you give a class as starting point.