Skip to content

Commit

Permalink
Update preprocessor to "support" instant events
Browse files Browse the repository at this point in the history
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 #20767.)
  • Loading branch information
Brian Vaughn committed Feb 23, 2021
1 parent b99c38f commit 8c039ba
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,9 @@ function processTimelineEvent(
// TODO: Begin user timing measure
} else if (ph === 'e') {
// TODO: End user timing measure
} else if (ph === 'i' || ph === 'I') {
// Instant events.
// Note that the capital "I" is a deprecated value that exists in Chrome Canary traces.
} // eslint-disable-line brace-style

// Unrecognized event
Expand Down

0 comments on commit 8c039ba

Please sign in to comment.