perfetto: Stop tracing on threads more reliably
Moves resetting of TraceEventDataSource fields before flushing threads. This way, the thread's flush no longer races with the field resets. (If flushing occurs before the field resets, another thread may theoretically recreate its ThreadLocalEventSink before the resets, too.) Also flush the disabling thread in the same task, as a future task may be executed on a different worker thread. Bug: 903449 Change-Id: I13eb0d0a330ec66ffd826791f842c6fa7f8bd717 Reviewed-on: https://chromium-review.googlesource.com/c/1340325 Commit-Queue: oysteine <oysteine@chromium.org> Reviewed-by:oysteine <oysteine@chromium.org> Cr-Commit-Position: refs/heads/master@{#608972}
Showing
Please register or sign in to comment