scalacenter / scalac-profiling

Compilation profiling tool for Scala 2 projects

Home Page:https://scalacenter.github.io/scalac-profiling/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scala 3 support?

SethTisue opened this issue · comments

Now that we have Scala 2.13 support, it's natural to wonder about Scala 3.

Creating the Scala 2 version involved adding some hooks to the old compiler, so the new compiler might need new hooks, too?

Note that Scala 3 has -Vprofile, but it's only somewhat related to what this repo does. ("Show metrics about sources and internal representations of the most complex methods", its docstring says.)

My two cents on the topic: scalac-profiling hugely relies on the scala-reflect library that is not ported to Scala 3. So we can't enable the support without porting exposing statistics in Scala 3 first, as @SethTisue said. From my way of thinking, this is an appropriate task for the Center because it's Scala 3. Or one day, as it happened to Scala 2.13 support in scalac-profiling, someone from the community will do that. Although, last time, it took about 4 years.