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

Misleading logs regarding the `profiledb` on the first SBT startup

danicheg opened this issue · comments

I have enabled compiler option -P:scalac-profiling:no-profiledb, but on the first SBT startup, I get the following logs:

Writing graph to /Users/foobar/baz-project/project/target/config-classes/META-INF/profiledb/graphs/implicit-searches-1699025774362.flamegraph
Creating global statistics information at /Users/foobar/baz-project/project/target/config-classes/META-INF/profiledb/global.profiledb.
Writing graph to /Users/foobar/baz-project/project/target/config-classes/META-INF/profiledb/graphs/implicit-searches-1699025774514.flamegraph
Creating global statistics information at /Users/foobar/baz-project/project/target/config-classes/META-INF/profiledb/global.profiled

On the actual run of the scalac-profiling, the mentioned files don't create and fill in.
What's interesting, on the subsequent startups of the SBT, this info isn't being printed.

I've witnessed such behaviour regarding the first startup of SBT when working on #47. There, I added a workaround to fix the unwanted warning. But only now, I realized that if users do not specify any of the compiler options on purpose, it won't log the warning regarding lacking the Ystatistics compiler option
NVM, my bad, found the issue 😞

Discovered how I broke the compiler plugin. So end users would not be affected during normal usage. Closing this.