Skip to content

doc: describe how to profile mergeWithGrind suggestions - #1169

Open
arademaker wants to merge 1 commit into
leanprover:mainfrom
arademaker:doc/contributing-grind-profiling
Open

arademaker wants to merge 1 commit into
leanprover:mainfrom
arademaker:doc/contributing-grind-profiling

Conversation

@arademaker

Copy link
Copy Markdown
Collaborator

Add a section to CONTRIBUTING.md asking contributors who accept mergeWithGrind suggestions from the weekly linters to report the change in elaboration time per declaration in the PR description, following Mathlib's practice (e.g., leanprover-community/mathlib4#36764). Explain how to measure it with trace.profiler and how to read the resulting trace.

I'm documenting the suggestion made by @chenson2018 here.

AI disclaimer: Claude Opus 5.5 validated the commands and drafted the new section.

Add a section to CONTRIBUTING.md asking contributors who accept
`mergeWithGrind` suggestions from the weekly linters to report the change
in elaboration time per-declaration in the PR description,
following Mathlib's practice (e.g. leanprover-community/mathlib4#36764).
Explain how to measure it with `trace.profiler` and how to read the
resulting trace.

AI disclaim: Claude Opus 5.5 was used to validate the commands and
draft the new section.
Copilot AI balanced review requested due to automatic review settings October 28, 2026 00:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the contributor profiling documentation update.

No open issues 🎉

What changed in this PR

Documents how CSLib contributors should measure and report elaboration-time changes when accepting weekly mergeWithGrind suggestions.

Changes:

  • Adds profiling instructions using Elab.async false and trace.profiler, with guidance on interpreting the output.
  • Provides an example PR-description format for per-declaration timing results, following Mathlib’s practice.
File Description
CONTRIBUTING.md Adds weekly-linter profiling guidance and a table-of-contents link.

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants