how to create a parent track to nest multiple tracks #2208
-
I want to create a parent track which nests multiple processes, and find a related discussion #914 ,which mentioned that we can create a tree of track to visualize logs hierarchically. I have a try, but the parent track couldn't be visualized by UI, only process and thread could be visualized. anyone can help found the cause of the issue? and how to resolve? ![]() ![]() |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi! It doesn't work because the process/thread hierarchy is making the parent/child hierarchy obsolete. You need to ditch the process/thread if you want arbitrary nesting. Read https://perfetto.dev/docs/getting-started/converting#grouping-tracks-with-hierarchies for details on how to group the tracks and https://perfetto.dev/docs/reference/synthetic-track-event for more information on synthetic trace generation. |
Beta Was this translation helpful? Give feedback.
Hi! It doesn't work because the process/thread hierarchy is making the parent/child hierarchy obsolete. You need to ditch the process/thread if you want arbitrary nesting.
Read https://perfetto.dev/docs/getting-started/converting#grouping-tracks-with-hierarchies for details on how to group the tracks and https://perfetto.dev/docs/reference/synthetic-track-event for more information on synthetic trace generation.