Skip to content

ui: log when a track is registered but never added to the track tree - #174

Merged
cdamus merged 1 commit into
sokatoafrom
issue/5569-sokatoa
Jul 30, 2026
Merged

cdamus merged 1 commit into
sokatoafrom
issue/5569-sokatoa

Conversation

@cdamus

@cdamus cdamus commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

A track that is registered but never added to the track tree fails silently in two ways that are easy to mistake for missing trace data: it is not drawn, and links to it from other tracks (e.g. from a CPU scheduling slice to the thread's state track) resolve through the track registry and then have nowhere to scroll to. Both addChildInOrder() call sites that can lose a track this way discarded the group lookup and the returned Result, so neither reported anything.

Check both, and warn when a thread group has no process group to live in or a thread state track has no thread group.

Also order the thread state track query explicitly. The order in which those tracks are registered and inserted into their groups was whatever SQLite happened to return, which makes their order in the timeline vary from run to run.

For android-graphics/sokatoa#5569

A track that is registered but never added to the track tree fails
silently in two ways that are easy to mistake for missing trace data:
it is not drawn, and links to it from other tracks (e.g. from a CPU
scheduling slice to the thread's state track) resolve through the track
registry and then have nowhere to scroll to. Both `addChildInOrder()`
call sites that can lose a track this way discarded the group lookup and
the returned Result, so neither reported anything.

Check both, and warn when a thread group has no process group to live in
or a thread state track has no thread group.

Also order the thread state track query explicitly. The order in which
those tracks are registered and inserted into their groups was whatever
SQLite happened to return, which makes their order in the timeline vary
from run to run.

For sarc-acl/sokatoa-internal#5569

Signed-off-by: Christian W. Damus <cdamus@eclipsesource.com>
@cdamus

cdamus commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator Author

Merging as approved from consuming application side.

@cdamus
cdamus merged commit f855601 into sokatoa Jul 30, 2026
1 check passed
@cdamus
cdamus deleted the issue/5569-sokatoa branch July 30, 2026 11:38
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