Skip to content

ui: Add full path in pinned tracks#5223

Open
stevegolton wants to merge 4 commits intomainfrom
dev/sg/pinned-tracks-as-symlinks
Open

ui: Add full path in pinned tracks#5223
stevegolton wants to merge 4 commits intomainfrom
dev/sg/pinned-tracks-as-symlinks

Conversation

@stevegolton
Copy link
Member

@stevegolton stevegolton commented Mar 21, 2026

When you pin a track, it doesn't show any context about where it came from. For process-scoped tracks such as thread state or counter tracks, their process context is lost.

The fix is to make pinned tracks show the full path, but first we need to change how pinned tracks work. Currently, pinned tracks are a separate mini workspace, and each TrackNode in it is a standalone TrackNode. When we pin, we take a complete copy of the node and add that copy to the pinned tracks workspace.

This patch changes how this works, so that pinned tracks are actually references to TrackNodes in the workspace.

This does also involve changing debug tracks and some plugins which added tracks to the pinned area directly, as we now must add a track or group to the workspace first before it can be pinned, but the result is the same.

Before:
image

After:
image

This reverts commit b723d21.

Simplifying the track names might make them harder to read, so I'm
kicking this can down the road for now.
@github-actions
Copy link

🎨 Perfetto UI Builds

@stevegolton stevegolton marked this pull request as ready for review March 21, 2026 17:10
@stevegolton stevegolton requested a review from a team as a code owner March 21, 2026 17:10
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.

2 participants