Skip to content
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

Merged
merged 3 commits into from
May 11, 2021
Merged

core(fr): convert source-maps gatherer #12467

merged 3 commits into from
May 11, 2021

Conversation

adamraine
Copy link
Member

Ref #11313

@adamraine adamraine requested a review from a team as a code owner May 11, 2021 18:20
@adamraine adamraine requested review from patrickhulce and removed request for a team May 11, 2021 18:20
@google-cla google-cla bot added the cla: yes label May 11, 2021
async startSensitiveInstrumentation(context) {
const session = context.driver.defaultSession;
session.on('Debugger.scriptParsed', this.onScriptParsed);
await session.sendCommand('Debugger.enable');
Copy link
Collaborator

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)

Copy link
Member Author

@adamraine adamraine May 11, 2021

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.

Copy link
Collaborator

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 :)

@adamraine adamraine merged commit 25176bb into master May 11, 2021
@adamraine adamraine deleted the fr-source-maps branch May 11, 2021 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants