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

Scheduling profiler: Unrecognized event type from Chrome Canary #20767

Closed
bvaughn opened this issue Feb 9, 2021 · 0 comments · Fixed by #20808
Closed

Scheduling profiler: Unrecognized event type from Chrome Canary #20767

bvaughn opened this issue Feb 9, 2021 · 0 comments · Fixed by #20808

Comments

@bvaughn
Copy link
Contributor

bvaughn commented Feb 9, 2021

Importing a profile recorded with Chrome Canary (v90) triggers this error check code:

// Unrecognized event
else {
throw new InvalidProfileError(
`Unrecognized event ${JSON.stringify(
event,
)}! This is likely a bug in this profiler tool.`,
);
}

Here's one such example event:

{
  "args": {},
  "cat": "blink.user_timing",
  "name": "requestStart",
  "ph": "I",
  "pid": 64032,
  "s": "t",
  "tid": 775,
  "ts": 25788659448
}

Looks like there's at least one new type, "I", which I assume will eventually affect Chrome stable (currently v88).

@bvaughn bvaughn self-assigned this Feb 9, 2021
bvaughn pushed a commit to bvaughn/react that referenced this issue Feb 23, 2021
Also fixed a small hiccup caused by Chrome Canary adding an unrecognized profiling event into the data. (This will resolve issue facebook#20767.)
bvaughn pushed a commit to bvaughn/react that referenced this issue Feb 23, 2021
These are no-ops for us, but adding recognition of the event type will prevent profiles imported from e.g. Chrome Canary from thorwing with an "unrecognized event" error. (This will resolve issue facebook#20767.)
bvaughn pushed a commit to bvaughn/react that referenced this issue Feb 23, 2021
This commit changes scheduling profiler marks from a format like '--schedule-render-1' to '--schedule-render-1-Sync' (where 1 is the numeric value of the Sync lane). This will enable the profiler itself to show more meaningful labels for updates and render work.

The commit also refactors and adds additional tests for the sceduling profiler package.

It also updates the preprocessor to 'support' instant events. These are no-ops for us, but adding recognition of the event type will prevent profiles imported from e.g. Chrome Canary from thorwing with an 'unrecognized event' error. (This will resolve issue facebook#20767.)
bvaughn pushed a commit to bvaughn/react that referenced this issue Feb 23, 2021
This commit changes scheduling profiler marks from a format like '--schedule-render-1' to '--schedule-render-1-Sync' (where 1 is the numeric value of the Sync lane). This will enable the profiler itself to show more meaningful labels for updates and render work.

The commit also refactors and adds additional tests for the sceduling profiler package.

It also updates the preprocessor to 'support' instant events. These are no-ops for us, but adding recognition of the event type will prevent profiles imported from e.g. Chrome Canary from thorwing with an 'unrecognized event' error. (This will resolve issue facebook#20767.)
bvaughn pushed a commit that referenced this issue Feb 23, 2021
This commit changes scheduling profiler marks from a format like '--schedule-render-1' to '--schedule-render-1-Sync' (where 1 is the numeric value of the Sync lane). This will enable the profiler itself to show more meaningful labels for updates and render work.

The commit also refactors and adds additional tests for the scheduling profiler package.

It also updates the preprocessor to 'support' instant events. These are no-ops for us, but adding recognition of the event type will prevent profiles imported from e.g. Chrome Canary from throwing with an 'unrecognized event' error. (This will resolve issue #20767.)
koto pushed a commit to koto/react that referenced this issue Jun 15, 2021
This commit changes scheduling profiler marks from a format like '--schedule-render-1' to '--schedule-render-1-Sync' (where 1 is the numeric value of the Sync lane). This will enable the profiler itself to show more meaningful labels for updates and render work.

The commit also refactors and adds additional tests for the scheduling profiler package.

It also updates the preprocessor to 'support' instant events. These are no-ops for us, but adding recognition of the event type will prevent profiles imported from e.g. Chrome Canary from throwing with an 'unrecognized event' error. (This will resolve issue facebook#20767.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant