on master help sign in
Add cost centers for canonicalization and nitpicking

Though it seems these are pretty cheap!

commit6d518a627def1813c0ebf1c1990a24806a21c7cd authorEvan Czaplicki <evancz@users.noreply.github.com> dateThu 24 Nov 2016, 00:35 (10 years ago) parent6a13d3e
1 file changed+2
src/Compile.hs+2
src/Compile.hs+2
@@ -38,6 +38,7 @@ compile packageName canonicalImports interfaces source =
3838
3939 -- Canonicalize all variables, pinning down where they came from.
4040 canonicalModule <-
41+ {-# SCC elm_compiler_canonicalize #-}
4142 Canonicalize.module' canonicalImports interfaces validModule
4243
4344 -- Run type inference on the program.
@@ -49,6 +50,7 @@ compile packageName canonicalImports interfaces source =
4950 -- One last round of checks
5051 canonicalDefs <-
5152 Result.format Error.Type $
53+ {-# SCC elm_compiler_nitpick #-}
5254 Nitpick.topLevelTypes types $
5355 Can.toSortedDefs (Module.program (Module.info canonicalModule))
5456