Skip to content

Simple profiling for the pipeline#326

Merged
ppolesiuk merged 4 commits intofram-lang:masterfrom
JakubZojdzik:develop
Mar 14, 2026
Merged

Simple profiling for the pipeline#326
ppolesiuk merged 4 commits intofram-lang:masterfrom
JakubZojdzik:develop

Conversation

@JakubZojdzik
Copy link
Contributor

@JakubZojdzik JakubZojdzik commented Mar 10, 2026

#293
Add a -timings flag which prints timings of execution of each pipeline step.
They are printed to stderr to separate them from the program's output.

@JakubZojdzik JakubZojdzik marked this pull request as ready for review March 10, 2026 15:53
Copy link
Member

@ppolesiuk ppolesiuk left a comment

Choose a reason for hiding this comment

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

Generally I approve the changes. There are two minor issues that could be addressed.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an opt-in pipeline profiling mode to help diagnose slow compilation/evaluation stages, aligned with Issue #293.

Changes:

  • Introduces a -timings CLI flag to enable timing output.
  • Exposes a Pipeline.timings flag and implements per-stage timing measurement.
  • Wraps key pipeline stages (type/effect inference, lowering, checks, evaluation) with timing instrumentation.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/dbl.ml Adds the -timings command-line option to toggle profiling.
src/Pipeline.mli Exposes the timings flag in the Pipeline module interface.
src/Pipeline.ml Implements timing measurement and wraps pipeline stages to print durations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ppolesiuk ppolesiuk linked an issue Mar 14, 2026 that may be closed by this pull request
@ppolesiuk ppolesiuk merged commit 88344d8 into fram-lang:master Mar 14, 2026
1 check passed
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.

Simple profiling for the pipeline

3 participants