lundi 17 octobre 2016

Proper way to get all installed methods in Pharo

Sometimes you want to analyze all the methods in the image. One way to do this is to work with CompiledMethod allInstances. But it is dangerous to do it this way, as

  1. You may end up with old methods that were not garbage-collected yet.
  2. There may be compiled methods of anonymous classes or other instances that are there for technical reasons.




Aucun commentaire:

Enregistrer un commentaire