-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
core(fr): convert source-maps gatherer #12467
Conversation
async startSensitiveInstrumentation(context) { | ||
const session = context.driver.defaultSession; | ||
session.on('Debugger.scriptParsed', this.onScriptParsed); | ||
await session.sendCommand('Debugger.enable'); |
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.
long-term WDYT about splitting out the script parsed bit as a dependency of this and JsUsage? (I think we took a similar note when we did JsUsage)
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.
Yeah that makes sense. This might be necessary if we want to run these gatherers in snapshot mode. If the events are sent after Debugger.enable
, I'm not sure if we can get a set of events for each gatherer.
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'm not sure if we can get a set of events for each gatherer.
We'll need the dedicated session creation piece of #11313 for that to work, but we'll be making it work :)
Ref #11313