Skip to content

Make trace processor metatrace thread local, not global#2000

Merged
simonmacm merged 3 commits intomainfrom
dev/simonmacm/thread-local-metatrace
Jul 3, 2025
Merged

Make trace processor metatrace thread local, not global#2000
simonmacm merged 3 commits intomainfrom
dev/simonmacm/thread-local-metatrace

Conversation

@simonmacm
Copy link
Contributor

This makes it possible to use metatrace in a multi-threaded context, as long as we are careful to only use each trace processor instance from a single thread.

Bug: 427909201

This makes it possible to use metatrace in a multi-threaded context,
as long as we are careful.
@simonmacm simonmacm requested a review from a team as a code owner July 2, 2025 15:19
@simonmacm simonmacm enabled auto-merge (squash) July 3, 2025 14:31
@simonmacm simonmacm disabled auto-merge July 3, 2025 14:51
@simonmacm simonmacm enabled auto-merge (squash) July 3, 2025 15:17
@simonmacm simonmacm merged commit 17e2ace into main Jul 3, 2025
23 checks passed
@simonmacm simonmacm deleted the dev/simonmacm/thread-local-metatrace branch July 3, 2025 15:17
olehkuznetsov pushed a commit to olehkuznetsov/perfetto that referenced this pull request Mar 12, 2026
This makes it possible to use metatrace in a multi-threaded context, as
long as we are careful to only use each trace processor instance from a
single thread.

Bug: [427909201](https://b.corp.google.com/427909201)
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