Skip to content

feat: store traces in memory for deeper inspection (store_traces_as) - #14386

Merged
datokrat merged 6 commits into
leanprover:masterfrom
datokrat:stored-traces
Jul 15, 2026
Merged

feat: store traces in memory for deeper inspection (store_traces_as)#14386
datokrat merged 6 commits into
leanprover:masterfrom
datokrat:stored-traces

Conversation

@datokrat

Copy link
Copy Markdown
Contributor

This PR is a follow-up to #14352 (introducing postprocess_traces). It provides a new command store_traces_as myTraces in cmd that runs the command cmd and stores its traces in-memory under the name name. The stored traces can be transformed and viewed using #postprocess_traces tracePostprocessor myTraces.

@datokrat datokrat added the changelog-language Language features and metaprograms label Jul 14, 2026
@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Jul 14, 2026
@mathlib-lean-pr-testing

Copy link
Copy Markdown

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 3c080a47dbbe4b32ab01fd7ae332ad6bd30b4054 --onto 12c859a4d735fbcdb3ebbddb42dcc8619bcc7a7d. You can force Mathlib CI using the force-mathlib-ci label. (2026-07-14 15:31:35)

@leanprover-bot

Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase 3c080a47dbbe4b32ab01fd7ae332ad6bd30b4054 --onto 7847ce51363794755252279e6732240bd4f27ca8. You can force reference manual CI using the force-manual-ci label. (2026-07-14 15:31:36)

@datokrat

Copy link
Copy Markdown
Contributor Author

!bench

@leanprover-radar

leanprover-radar commented Jul 14, 2026

Copy link
Copy Markdown

Benchmark results for d5f5cd6 against 3c080a4 are in. No significant results found. @datokrat

  • 🟥 build//instructions: +5.7G (+0.05%)

Small changes (2✅, 1🟥)

  • build/profile/interpretation//wall-clock: -491ms (-0.47%)
  • 🟥 compiled/deriv//maxrss: +441kiB (+0.08%)
  • lake/inundation/startup//maxrss: -5MiB (-4.15%)

@datokrat
datokrat marked this pull request as ready for review July 15, 2026 13:07
@datokrat
datokrat added this pull request to the merge queue Jul 15, 2026
Merged via the queue into leanprover:master with commit 6e88acc Jul 15, 2026
19 checks passed
robsimmons pushed a commit that referenced this pull request Jul 29, 2026
#14386)

This PR is a follow-up to #14352 (introducing `postprocess_traces`). It
provides a new command `store_traces_as myTraces in cmd` that runs the
command `cmd` and stores its traces in-memory under the name `name`. The
stored traces can be transformed and viewed using `#postprocess_traces
tracePostprocessor myTraces`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-language Language features and metaprograms toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants