
For non-zygote child gpu thread, start the trace thread in ContentMainRunnerImpl() directly. For zygote child gpu thread, start the trace thread in RunZygote after zygote fork and featurelist init. For Linux & ChromeOS, stop and restart the trace thread when entering sandbox. Restarting trace thread has a caveat that delayed tasks would will be lost unless we save them. This is [3/?] CL of enabling tracing prior to sandboxing. Bug: 380411640 Change-Id: I89fa94f63a709de0e3da4f8759098c9fff813bee Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6180639 Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Reviewed-by: Etienne Pierre-Doray <etiennep@chromium.org> Commit-Queue: Kramer Ge <fangzhoug@chromium.org> Cr-Commit-Position: refs/heads/main@{#1428704}