scala.scalanative
Optimizer reporters can override one of the corresponding methods to get notified whenever one of the optimization events happens.