Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect more fine grained timings from analysis #975

Open
feds01 opened this issue Sep 14, 2023 · 1 comment
Open

Collect more fine grained timings from analysis #975

feds01 opened this issue Sep 14, 2023 · 1 comment
Labels
performance Issues and PRs related to performance semantic-analysis Relating to the analysis of code semantics before typechecking.

Comments

@feds01
Copy link
Contributor

feds01 commented Sep 14, 2023

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 feds01 added performance Issues and PRs related to performance semantic-analysis Relating to the analysis of code semantics before typechecking. labels Sep 14, 2023
@feds01
Copy link
Contributor Author

feds01 commented Sep 29, 2023

Exhaustiveness timings are now collected in #987

@feds01 feds01 closed this as completed Sep 29, 2023
@feds01 feds01 reopened this Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Issues and PRs related to performance semantic-analysis Relating to the analysis of code semantics before typechecking.
Projects
None yet
Development

No branches or pull requests

1 participant