Perfetto: Ensure we fully wait for child processes to start tracing
When Perfetto is enabled but used by the legacy Coordinator/Agent Mojo layer, tracing is enabled through a different set of message pipes (the Perfetto Consumer/Producer interfaces). To fully ensure that the legacy Coordinator only calls the BeginTracing callback when tracing is enabled for all currently running sub-processes, we add a new API call which explicitly waits for the TraceLog to become enabled for that sub-process before calling the callback. This should fix some flaky tests in the perfetto_content_browsertests suite. BUG=839084,935642 R=dcheng@chromium.org,eseckler@chromium.org Change-Id: I0d72cf3f393c5e68d54a489e6c7a17699e02a4e7 Reviewed-on: https://chromium-review.googlesource.com/c/1490901Reviewed-by:Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Eric Seckler <eseckler@chromium.org> Commit-Queue: oysteine <oysteine@chromium.org> Cr-Commit-Position: refs/heads/master@{#636441}
Showing
Please register or sign in to comment