To clarify, these are equivalent:
The new way (v0.115.1 and later)
[build.buildStats]
enable = true # default is false
disableClasses = false # default is false
disableIDs = false # default is false
disableTags = false # default is false
The old way…
[build]
writeStats = true # default is false