Skip to content

emit: nest pytrace track under TK_THREAD for collapsible rendering#60

Merged
anakryiko merged 1 commit intoanakryiko:masterfrom
xerothermic:pytrace_fix2
Apr 22, 2026
Merged

emit: nest pytrace track under TK_THREAD for collapsible rendering#60
anakryiko merged 1 commit intoanakryiko:masterfrom
xerothermic:pytrace_fix2

Conversation

@xerothermic
Copy link
Copy Markdown
Contributor

The pytrace per-thread track was parented on TK_THREAD_META. While that is the semantically correct anchor for a thread's per-tid metadata, trace_processor treats META as a thread-metadata source rather than a slice track, so children with parent_uuid=META render as floating siblings of the kernel thread row instead of nested under it -- the "collapsible child row" behavior is lost in the UI.

Move parent_uuid to TK_THREAD (the kernel event track), matching the TIMER track pattern from 3e7a877 ("emit: move timer events to a separate non-merged TIMER child track"). MERGE_NONE still keeps the row from being absorbed into the parent by Perfetto's BY_TRACK_NAME default.

Result restored: pytrace appears as a collapsible nested child of the kernel thread row, hidden when the thread row is collapsed.

The pytrace per-thread track was parented on TK_THREAD_META. While that
is the semantically correct anchor for a thread's per-tid metadata,
trace_processor treats META as a thread-metadata source rather than a
slice track, so children with parent_uuid=META render as floating
siblings of the kernel thread row instead of nested under it -- the
"collapsible child row" behavior is lost in the UI.

Move parent_uuid to TK_THREAD (the kernel event track), matching the
TIMER track pattern from 3e7a877 ("emit: move timer events to a
separate non-merged TIMER child track"). MERGE_NONE still keeps the row
from being absorbed into the parent by Perfetto's BY_TRACK_NAME default.

Result restored: pytrace appears as a collapsible nested child of the
kernel thread row, hidden when the thread row is collapsed.

Signed-off-by: Patrick Lu <[email protected]>
@anakryiko anakryiko merged commit 34cd753 into anakryiko:master Apr 22, 2026
4 checks passed
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