hashc icon indicating copy to clipboard operation
hashc copied to clipboard

Collect more fine grained timings from analysis

Open feds01 opened this issue 1 year ago • 1 comments

The analysis phase of the compiler has several distinguished parts and phases which run. In the recent spirit of improving performance across the compiler, it would be beneficial to collect timings on what the analysis phase is doing during its runtime. More specifically, we probably want to collect metrics on:

  • various AST passes, and how long they take
  • inference
  • normalisation
  • ~~exhaustiveness~~

The semantic analysis phase can report these metrics through the standard CompilerStage API.

feds01 avatar Sep 14 '23 01:09 feds01