-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[red-knot] Add metrics collection #16005
base: main
Are you sure you want to change the base?
Conversation
I still want to add more actual metrics (and verify that there aren't any performance regressions), but I'm pushing this up for visibility. Overview documentation available in the README. Collect metrics by passing the $ ./red_knot check --project ~/git/py/black --venv-path .venv --extra-search-path src --metrics Then generate some graphs! Total scopes created over time: $ uv run crates/ruff_metrics/plot_metrics.py counter semantic_index.scope_count Total scopes over time, per file: $ uv run crates/ruff_metrics/plot_metrics.py counter semantic_index.scope_count --group-by file Histogram of total scopes per file: $ uv run crates/ruff_metrics/plot_metrics.py histogram semantic_index.scope_count --group-by file |
|
This adds metrics collection to red-knot.
[rendered README]
Work in progress