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

feat: ⛎ Trace Phases #24

Closed
wants to merge 5 commits into from
Closed

feat: ⛎ Trace Phases #24

wants to merge 5 commits into from

Conversation

mmcqd
Copy link
Collaborator

@mmcqd mmcqd commented Aug 31, 2022

This PR introduces a notion of Phases, which each trace is tagged with. These represent phases of compilation/interpretation. When displaying a diagnostic, the user can provide a function to determine which phases they are interested in seeing traces from. For instance, a user might be interested in seeing all evaluation steps, but have no interest in seeing the elaboration process.

@mmcqd mmcqd requested review from favonia and TOTBWF and removed request for favonia August 31, 2022 02:57
@mmcqd mmcqd changed the title feat: Trace Phases feat: ⛎ Trace Phases Aug 31, 2022
src/core/Phase.ml Outdated Show resolved Hide resolved
@favonia
Copy link
Contributor

favonia commented Aug 31, 2022

Diagnostic.map should be renamed, or it should take care of 'phase as well. Diagnostic.map is intended to be used with Logger.S.bridge

@mmcqd
Copy link
Collaborator Author

mmcqd commented Aug 31, 2022

Diagnostic.map should be renamed, or it should take care of 'phase as well. Diagnostic.map is intended to be used with Logger.S.bridge

I added a function to map phases as well

@mmcqd mmcqd requested a review from favonia August 31, 2022 13:35
@favonia
Copy link
Contributor

favonia commented Sep 12, 2022

Suggestions: (1) add a further phase function that change the ambient phase, and make phase optional for (k)tracef, and (2) merge Code and Phase... maybe? I don't know.

@favonia
Copy link
Contributor

favonia commented Jun 7, 2023

Closed as what we want seems to be #38. More precisely, the default traces are user-facing and should be "coarse".

@favonia favonia closed this Jun 7, 2023
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