Skip to content

[Deploy] Comparison reports#6012

Draft
mstange wants to merge 42 commits into
firefox-devtools:mainfrom
mstange:comparison-reports
Draft

[Deploy] Comparison reports#6012
mstange wants to merge 42 commits into
firefox-devtools:mainfrom
mstange:comparison-reports

Conversation

@mstange

@mstange mstange commented May 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@mstange mstange force-pushed the comparison-reports branch 2 times, most recently from a3cc414 to 4bd0212 Compare May 12, 2026 18:02
mstange and others added 28 commits June 4, 2026 11:36
It's not used by any TreeView users yet.

The next commit will use it for the marker table.
The intention is to also use it for the function list.
The sort is also persisted in the URL.
…ings

- Fix wrong tab slug ('calltree' → 'function-list') in _onEnterOrDoubleClick
  for SelfWing, UpperWingFlameGraph, LowerWing, and UpperWing so that
  double-clicking a call node opens the bottom box for the correct tab
- Add a contextMenuId prop to FlameGraph (defaulting to 'CallNodeContextMenu')
  so wings can specify a different context menu
- Wire up FunctionListContextMenu for UpperWingFlameGraph and SelfWing:
  right-clicking now dispatches changeRightClickedFunctionIndex so the
  FunctionListContextMenu (already rendered in Details) can respond
mstange and others added 14 commits June 4, 2026 16:05
This is a workaround for Firefox and Chrome using different syntax
to indicate the location of a JS function.

On Windows, the difference is samply's fault: The JIT ETW events
already allow specifying the URL and line/col separately from the
function name, but samply puts it back into the function name.

And Firefox doesn't make use of those ETW events yet.
The tooltip uses `position: fixed` which interprets `left/top` as viewport-relative,
but `ChartCanvas` was storing `event.pageX/pageY` (document-relative, including 
scroll offsets). In a non-scrolling page these match, but inside a scrollable 
container like our benchmark page they diverge by `window.scrollY`, dragging the 
tooltip down.

Switched the state field from `pageX/pageY` to `clientX/clientY`.
@mstange mstange force-pushed the comparison-reports branch from b345b45 to 0c8885a Compare June 4, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant