commit | e79bbabd43d1870d5e20a01c82855f3d7b623b36 | [log] [tgz] |
---|---|---|
author | Sunny Sachanandani <sunnyps@chromium.org> | Fri Aug 09 18:35:34 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Aug 09 18:35:34 2024 +0000 |
tree | f2088fa466fa4677ae10824e75f57431e6e59728 | |
parent | 4679e5437b16535d30b36ce3f0c6e2a3001b66e0 [diff] |
Add ComputeEstimatedMemoryUsage For Chrome background memory tracing, we need a method to retrieve total memory usage from Dawn without the overhead of generating a detailed memory dump. Add ComputeEstimatedMemoryUsage method for that. Also contains a change to how we report textures in memory dumps - shared and memoryless textures will be present in the dump but with zero size so the totals don't change, but we still have useful information for profiling/debugging. Bug: 330806170 Change-Id: Ib28a3f69f40fffedbc7ab879e94468aa8c0461a5 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/201794 Reviewed-by: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Brandon Jones <bajones@chromium.org> Auto-Submit: Sunny Sachanandani <sunnyps@chromium.org> Commit-Queue: Sunny Sachanandani <sunnyps@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.