Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: Rule Performance Statistics #108
feat: Rule Performance Statistics #108
Changes from 27 commits
69c143e
4c76a79
fbddd43
df315c7
d4162b7
0b64114
a7962a8
417f95f
5f36a49
7335add
9afa76d
72d903f
f5c2b84
b8cc2f8
ddf8996
67a3be7
e92980b
9571c7b
d69f6ea
ba7acfd
ef239c2
d68c9d8
e4e1c7c
051e8c9
22c363e
ebe0ce7
148fbbd
034d033
834805f
f62b3c5
8d644a6
b229c58
12d61cd
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do we calculate
total
? From this example, it looks like total = parse + rules + fix. But, linter is also doing other things in each pass, e.g., processes inline configuration and adds globals, so the sum of only those parts of the process that we're individually tracking might be misleading.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mdjermanovic: Yes, the total is computed as you say. I agree that from this perspective, it might be confusing and be interpreted as the total lint timing.
@nzakas: Should we just leave it out (as we did in rules) or keep it and make it track the overall timing of a particular run?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd keep it and make it track the overall timing of a particular pass (which should be >= parse + rules + fix).
@nzakas what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using it for the overall timing makes sense to me. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I've updated the implementation and RFC. Each pass
total
time now corresponds to the time that is spent when runningLinting code for ${debugTextDescription} (pass ${passNumber})
...Please let me know if this aligns with what you had in mind. 👍