Limit on the number of namespaces for perfetto categories #1053
-
I'm trying to integrate Perfetto into a large project, and it would very much like to use more than 32 unique namespaces for categories. The maximum number of namespaces seems to be limited to 32 (by kMaxDataSources). What are the implications of increasing that limit and is there a better option for dramatically increasing the number of distinct sets of categories that don't have to be defined together? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Thanks for asking this. Interesting problem. @ddiproietto can you PTAL? |
Beta Was this translation helpful? Give feedback.
-
Due to the use of thread local storage is not a good idea to increase kMaxDataSources to more that 32 in upstream perfetto. It will use too much thread_local space, which I believe ultimately reduces available stack space on most platforms. We can however decouple the number of namespaces from kMaxDataSources. This is what https://r.android.com/3431685 is doing (the CL was started to fix a different problem, but it should also fix this). I hope we can merge it in the following weeks, stay tuned |
Beta Was this translation helpful? Give feedback.
Due to the use of thread local storage is not a good idea to increase kMaxDataSources to more that 32 in upstream perfetto. It will use too much thread_local space, which I believe ultimately reduces available stack space on most platforms.
We can however decouple the number of namespaces from kMaxDataSources. This is what https://r.android.com/3431685 is doing (the CL was started to fix a different problem, but it should also fix this).
I hope we can merge it in the following weeks, stay tuned