scalacenter / scalac-profiling

Compilation profiling tool for Scala 2 projects
https://scalacenter.github.io/scalac-profiling/
Apache License 2.0
129 stars 17 forks source link

Scala 3 support? #42

Open SethTisue opened 10 months ago

SethTisue commented 10 months ago

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.)

danicheg commented 10 months ago

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.