配置文件Scala3编译器
我们有一个Scala3项目,可以使用宏。我们使用带有金属插件的Visual Studio代码。
SBT Clean Compile
花了20分钟的时间。有什么方法可以介绍scala3 编译器要弄清楚那个时间的去向?
We have one Scala3 project where we use macros. We use Visual Studio Code with Metals plugin.
sbt clean compile
tooks more then 20 minutes. Is there any way to profile Scala3
compiler to figure out where that time goes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在
build.sbt
中设置CompilerFlag“ -vprofile”。它将输出文件的复杂性。至少,它会给您一个提示,其中会花费很多时间。
也许这对您也很有趣:
scala sbt-测量子主题的任务时间
You can set the compilerflag "-Vprofile" in your
build.sbt
.It will output the complexity of your files. At least, it will give you a hint, where a lot of compile time will be spend.
Maybe this will be interesting for you as well:
Scala Sbt - Measure task time for subprojects