Skip to content

Conversation

@Lotes
Copy link
Contributor

@Lotes Lotes commented Nov 4, 2025

Closes #284

There is one TODO, I cannot resolve: What do we measure in the validation phase?

Lotes added 2 commits November 4, 2025 18:06
Signed-off-by: Markus Rudolph <[email protected]>
@github-actions
Copy link

github-actions bot commented Nov 4, 2025

PR Preview Action v1.6.1

🚀 View preview at
https://eclipse-langium.github.io/langium-previews/pr-previews/pr-287/

Built to branch previews at 2025-11-04 17:12 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@Lotes Lotes requested a review from msujew November 5, 2025 09:34
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

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

Looks quite good. See the comment below for the open TODO item.

└─────────┴───────────────────────────────┴───────┴────────┴───────────┘
```

* the **validation** process broken down by each grammar rule. TODO what exactly is measured here?
Copy link
Member

Choose a reason for hiding this comment

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

During the validation, the profiler measures the time each type of AST node takes to go through the validation. Count will keep track of how many nodes of a specific type have been validated. In this example, 5 Person items and 8 Greeting items have gone through the validation, taking 60% and 8% of the whole validation time respectively.

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.

Add documentation: Profiler

3 participants