Skip to content

[Deploy] Comparison reports#6012

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

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

Conversation

@mstange
Copy link
Copy Markdown
Contributor

@mstange mstange commented May 8, 2026

No description provided.

mstange and others added 27 commits May 11, 2026 17:37
When we make columns sortable, this will offer a bigger click
target and mousedown feedback area.
…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 mstange force-pushed the comparison-reports branch from b46df1f to a3cc414 Compare May 11, 2026 21:39
mstange added 2 commits May 11, 2026 17:52
This command takes a .toml file and adds label frames to a profile based on 
matching function names.

We want to use this for profiles from samply, to insert labels for DOM calls 
and Layout / Style / etc.

Example:
Before: https://share.firefox.dev/48wEADM
After: https://share.firefox.dev/3P9d3BQ

The toml file has to be provided by the user, because the matched function
names are specific to the program being profiled.

Here's an example toml file:
https://gist.github.com/mstange/827c40404c987bc566b8b324efc0a04f
mstange and others added 7 commits May 11, 2026 17:53
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 a3cc414 to 4bd0212 Compare May 12, 2026 18:02
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