Thread Name Truncated in Perfetto Trace #960
-
Hello Perfetto Team, I am encountering an issue with thread names being truncated in Perfetto traces. Specifically, I have a thread named Could you provide guidance on how to display the full thread name in the Perfetto trace output?
Thank you for your assistance! Best regards, Kevin. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
The 16 character limitation is limitation of the underlying ftrace data source which the kernel provides for tracing. It is not a limitation of Perfetto itself If full names are important to you, you can turn on the record_thread_names option in the process stats (https://perfetto.dev/docs/reference/trace-config-proto#ProcessStatsConfig) data source which will make us scrape /proc to get the full names. Note that this is somewhat expensive which is why we do not turn it on by default. |
Beta Was this translation helpful? Give feedback.
The 16 character limitation is limitation of the underlying ftrace data source which the kernel provides for tracing. It is not a limitation of Perfetto itself
If full names are important to you, you can turn on the record_thread_names option in the process stats (https://perfetto.dev/docs/reference/trace-config-proto#ProcessStatsConfig) data source which will make us scrape /proc to get the full names. Note that this is somewhat expensive which is why we do not turn it on by default.