-
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(tracing): handle FrameCommittedInBrowser with processPseudoId #14800
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.
nice fix!
|
||
const procReadyEvt = JSON.parse(JSON.stringify(fcibEvt)); | ||
procReadyEvt.name = 'ProcessReadyInBrowser'; | ||
procReadyEvt.args.data = {frame, processId, processPseudoId: '0xbaabaa'}; |
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.
Oh, do the processPseudoId
s match? Almost feels like information we should be using in trace-processor (only look at ProcessReadyInBrowser
events that have a processPseudoId
that matches a FrameCommittedInBrowser
without a proccessId
?) but maybe it can never matter
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.
yah we definitely could. and I considered it. But I think it's kinda overkill. (tho admittedly OPP does it)
I'm happy to revisit.
fixes #14798
There are some traces where the pid isnt available when the frame is created. In these situations, the
FrameCommittedInBrowser
event has an undefinedprocessId
prop, and empty stringname
prop, and a hexadecimalprocessPseudoId
. Later aProcessReadyInBrowser
event provides the processId.I'm not sure how common this is, or the exact circumstances. I've only discovered one of my saved traces (out of 200+) had this pattern, but.. matt ran into it #14798 too.
Regardless, here's a fix w/ a test.