Skip to content

Conversation

@camillobruni
Copy link
Contributor

First hacky approach to showcase how V8RuntimeCallStatsTab could hijack the current selection and stay focused.
Previously we'd always switch to the current_selection tab in TraceImpl.onSelectionChange which breaks usability for custom tabs that render content based on the current selection.

@camillobruni camillobruni requested a review from a team as a code owner January 21, 2026 11:01
} else {
const currentTabUri = this.tabs.currentTabUri;
const tab = this.tabs.resolveTab(currentTabUri);
if (tab && tab.content instanceof TraceTab) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs some better cleaner approach for sure :) (double dispatch or a custom TraceTabManagger or so)

@github-actions
Copy link

🎨 Perfetto UI Build

✅ UI build is ready: https://storage.googleapis.com/perfetto-ci-artifacts/gh-21207093757-1-ui/ui/index.html

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