-
Notifications
You must be signed in to change notification settings - Fork 322
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
Add Locations Filter for Instrumented Locations #1564
Conversation
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.
- The code looks good.
- Tested this build in the IDE – my original "lambda slow" case is now indeed fixed. Using the
_
sugar instead of a lambda in the same spot is also fixed. - Before merging, please clarify for me the status of the block tests – why are they pending and why do they assert thunks in places that should be forces.
context.receive(4) should contain allOf ( | ||
Api.Response(requestId, Api.PushContextResponse(contextId)), | ||
TestMessages.update(contextId, xExpr, Constants.THUNK), | ||
TestMessages.update(contextId, mainRes, Constants.THUNK), |
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.
this should be an integer, not a thunk
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.
It's pending because of #1567
context.receive(5) should contain allOf ( | ||
Api.Response(requestId, Api.PushContextResponse(contextId)), | ||
TestMessages.update(contextId, xExpr, Constants.THUNK), | ||
TestMessages.update(contextId, mainRes, Constants.THUNK), |
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.
this should be an integer, not a thunk
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.
It's pending because of #1567
} | ||
|
||
it should "not instrument sugared lambdas in block expressions" in { | ||
pending |
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.
why are these pending?
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.
It's pending because of #1566
PR adds the location filter that excludes lambdas and local functions from the instrumentation.
|
Pull Request Description
close #1529
PR adds the location filter that excludes lambdas and local functions from the instrumentation.
Changelog:
feat: implement locations filter that extracts a comprehensive list of locations that should be instrumented
feat: instantiate the runtime instrument using the new location filter
test: add test suite that checks instrumented locations
Important Notes
Checklist
Please include the following checklist in your PR: