Skip to content

Conversation

@copybara-service
Copy link

[XProf: trace viewer] Pre-calculate visible level offsets in Timeline.

This change introduces a visible_level_offsets_ vector to store the y-offset for each level that is visually rendered. This allows for different rendering heights for different group types, such as flame charts and counters. The CalculateOffsets function now populates both group and visible level offsets. The event drawing logic is updated to use these pre-calculated offsets for positioning events.

This will be used in the navigate to event feature.

There is no visual change after this CL

This change introduces a `visible_level_offsets_` vector to store the y-offset for each level that is visually rendered. This allows for different rendering heights for different group types, such as flame charts and counters. The `CalculateOffsets` function now populates both group and visible level offsets. The event drawing logic is updated to use these pre-calculated offsets for positioning events.

This will be used in the navigate to event feature.

There is no visual change after this CL

PiperOrigin-RevId: 845084690
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.

0 participants