Skip to content

Proposal: Track WebGL, WebGL2 and WebGPU usage #3913

@beaufortfrancois

Description

@beaufortfrancois

To better understand how WebGL, WebGL2, and WebGPU APIs are being used on the web platform, I propose adding the following WebDX features:

  • Features matching CanvasRenderingContext::RecordUKMCanvasDrawnToRenderingAPI() in Chromium for HTMLCanvasElement and OffscreenCanvas. This would allow us to identify rendering contexts where content has actually been drawn, covering WebGL, WebGL2, and WebGPU.
  • A feature matching kWebGPUQueueSubmit in Chromium to specifically track when GPU compute resources are used, rather than just context creation. This is specific to WebGPU since WebGL and WebGL2 don't have GPU compute.

Additionally, we should consider if similar tracking is needed for getCurrentTexture() in WebGPU contexts to fully capture active usage patterns.

@captainbrosset What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature definitionCreating or defining new features or groups of features.feature entry requestA request for a new web platform feature entry

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions