[tracing] Support perfetto API in dawn This CL adds support for perfetto API in dawn and uses directly. - Update DEPS and build config - Update src/dawn/platform/tracing/TraceEvent.h to use perfetto trace macros directly, and add stubs for !DAWN_USE_PERFETTO - Update perf_tests to export perfetto trace directly (instead of manually write a json file) and use trace_processor to record results. - Rewrite callsites to fix perfetto macros (remove platform, and use string categories) Bug: 542534250 Change-Id: If8e88d912e8249d79de7081505a24163cf293a48 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/329295 Reviewed-by: Geoff Lang <geofflang@chromium.org> Commit-Queue: Etienne Pierre-doray <etiennep@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.