You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When tracing gemini.google.com, it takes the Performance panel ~22.0 s
to execute updateSourceMapEntities (via resolveMappingsForProfileNodes).
With this CL, it takes ~8.7 s.
* getZeroIndexedStackTraceInEventPayload was a hot function, and it
performed an expensive switch statement on strings for each call
frame. That switch statement was done in a `.map`, but it is invariant
to the mapped element, so I moved the switch statement up.
* updateSourceMapEntities actually only needs the top frame (as do many
other callers). So I added getStackTraceTopCallFrameInEventPayload to
perform much less work.
Bug: 444483828
Change-Id: I4bdfcc5bc9e53942a010c03822816f318ec03240
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6941582
Reviewed-by: Paul Irish <[email protected]>
Commit-Queue: Connor Clark <[email protected]>
Commit-Queue: Paul Irish <[email protected]>
Auto-Submit: Connor Clark <[email protected]>
0 commit comments