Add a way to show where top level eval is in progress #57137
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.
It would be helpful to be able to see where top level eval is at during a running script or test suite, for debugging slow execution/hangs. Especially on remote machines that are harder to send a
SIGUSR1/SIGINFO
to.This adds
--show-eval=[yes|no|loc]
.yes
is the full code with location info,loc
is just the main expr location which should be helpful-enough.For example
--show-eval=loc
(which also is what--show-eval
with no args enables)With this implementation information is limited when test code is within
@testset
s or scripts which are mostly a big function that is called at the end. Perhaps more can be done to give info in those cases?Also maybe this should be
--trace-eval
to go alongside--trace-compile
and--trace-dispatch
.