Skip to content

Trace rebuilds#2283

Merged
mergify[bot] merged 5 commits into
masterfrom
trace-rebuilds
Oct 21, 2021
Merged

Trace rebuilds#2283
mergify[bot] merged 5 commits into
masterfrom
trace-rebuilds

Conversation

@pepeiborra

@pepeiborra pepeiborra commented Oct 19, 2021

Copy link
Copy Markdown
Collaborator

Add more tracing to investigate module rebuilds and key dirtiness

@pepeiborra pepeiborra added the merge me Label to trigger pull request merge label Oct 19, 2021

@jneira jneira left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, thanks

Comment thread ghcide/src/Development/IDE/Main.hs Outdated
@@ -239,8 +239,8 @@ stderrLogger logLevel = do
telemetryLogger :: IO Logger
telemetryLogger
| userTracingEnabled = return $ Logger $ \p m ->

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

withEventTrace also contains this guard. You could remove it; but that would change this from a single check of userTracingEnabled to create a no-op Logger to a check of userTracingEnabled on every step. Not sure if that's bad, but probably worth a comment to make it clear it's a deliberate decision if so.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

good shout, I'll add a comment

as pointed out by @michaelpj the check is already installed in withTracing

the logger should not make any assumptions regarding user tracing being static anyway
@mergify
mergify Bot merged commit f3cdf09 into master Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge me Label to trigger pull request merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants