Skip to content

Commit

Permalink
Merge pull request #52 from scalacenter/SethTisue-patch-1
Browse files Browse the repository at this point in the history
Recommend `-Vstatistics`
  • Loading branch information
SethTisue authored Nov 21, 2023
2 parents 02b068e + 4180a07 commit afc00c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ addCompilerPlugin("ch.epfl.scala" %% "scalac-profiling" % "<version>" cross Cros

To learn how to use the plugin, read [Speeding Up Compilation Time with `scalac-profiling`](https://www.scala-lang.org/blog/2018/06/04/scalac-profiling.html) in the scala-lang blog.

Note that in Scala 2.13, the preferred form of the compiler option to enable statistics is `-Vstatistics`. It is part of the family of `-V` flags that enable various "verbose" behaviors. (In 2.12, the flag is called `-Ystatistics`.)

### Compiler plugin options

All the compiler plugin options are **prepended by `-P:scalac-profiling:`**.
Expand All @@ -46,4 +48,4 @@ All the compiler plugin options are **prepended by `-P:scalac-profiling:`**.

## Historical context

The historical context of this project is quite interesting. For those wondering about the details, see the [dedicated section](HISTORICALCONTEXT.md).
The historical context of this project is quite interesting. For those wondering about the details, see the [dedicated section](HISTORICALCONTEXT.md).

0 comments on commit afc00c9

Please sign in to comment.