
Add flow trace events for command buffer flushes including all stages like ordering barrier, gpu channel flush and command buffer stub. We use (channel_id << 32 | flush_message_id) as the unique global identifier for these flows (within a special event scope). One small change is that we don't increment the flush id for every `OrderingBarrier` call if it doesn't switch contexts. This shouldn't matter in practice, but it means we won't have gaps in the flush ids anymore. Bug: 394772735 Change-Id: Ic66c5a3c57e1e95fafd4539d94effb5b95745583 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6240514 Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org> Auto-Submit: Sunny Sachanandani <sunnyps@chromium.org> Reviewed-by: Nasko Oskov <nasko@chromium.org> Commit-Queue: Nasko Oskov <nasko@chromium.org> Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org> Cr-Commit-Position: refs/heads/main@{#1417087}