ui: optimize BreakdownTracks and AndroidBinderViz performance#6050
Draft
gignat-dev wants to merge 1 commit into
Draft
ui: optimize BreakdownTracks and AndroidBinderViz performance#6050gignat-dev wants to merge 1 commit into
gignat-dev wants to merge 1 commit into
Conversation
Significantly reduce the time it takes to load traces with large breakdown
track hierarchies (like Android Binder) through three optimizations:
1. Projected Path for BreakdownTracks: Instead of running the expensive
intervals_overlap_count macro O(N) times (once per track node), pre-
calculate all intersections upfront into a shared temporary table.
Individual tracks now just run a cheap filter/aggregation against this
table. This is enabled for standard count-based breakdown tracks without
pivots or complex joins.
2. Batch SQL Table Creation: On the legacy path, CREATE PERFETTO TABLE
statements for counter tracks are now accumulated during the hierarchy
walk and flushed to the engine in a single batched query, reducing IPC
overhead.
3. Parallelize Binder Tracks: The AndroidBinderViz plugin now uses
Promise.all to kick off the generation of both server and client track
hierarchies concurrently rather than sequentially.
🎨 Perfetto UI Builds
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Significantly reduce the time it takes to load traces with large breakdown
track hierarchies (like Android Binder) through three optimizations: