8000 Emit the fast path duration in logs by elliottt · Pull Request #8812 · sorbet/sorbet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Emit the fast path duration in logs #8812

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

Merged
merged 1 commit into from
May 1, 2025
Merged

Conversation

elliottt
Copy link
Collaborator
@elliottt elliottt commented May 1, 2025

Start emitting the fast-path duration in the log.

Motivation

Debugging slowdowns.

Test plan

Existing tests.

@elliottt elliottt force-pushed the trevor/fast-path-log-duration branch from d67a593 to 07c7652 Compare May 1, 2025 15:51
@elliottt elliottt changed the title Emit the fast path duration to logs Emit the fast path duration in logs May 1, 2025
@@ -310,6 +309,9 @@ vector<core::FileRef> LSPTypechecker::runFastPath(LSPFileUpdates &updates, Worke
pipeline::typecheck(*gs, move(sorted), config->opts, workers, cancelable, std::nullopt, presorted);
gs->lspTypecheckCount++;

auto duration = timeit.setEndTime();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure if we should take the time to turn this into milliseconds here.

@elliottt elliottt marked this pull request as ready for review May 1, 2025 16:07
@elliottt elliottt requested a review from a team as a code owner May 1, 2025 16:07
@elliottt elliottt requested review from froydnj and jez and removed request for a team May 1, 2025 16:07
@elliottt elliottt merged commit 785248b into master May 1, 2025
14 checks passed
@elliottt elliottt deleted the trevor/fast-path-log-duration branch May 1, 2025 16:42
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.

3 participants
0