Bug 190546 - Web inspector should show memory use data for canvas and WebGL
Summary: Web inspector should show memory use data for canvas and WebGL
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: WebInspectorCanvasTab
  Show dependency treegraph
 
Reported: 2018-10-12 15:57 PDT by Simon Fraser (smfr)
Modified: 2018-10-16 10:24 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2018-10-12 15:57:10 PDT
It would be great if the canvas debugging stuff showed how much memory was being used by WebGL (e.g. listing resources like textures and their sizes).

This would be good to debug things like bug 190518.
Comment 1 Joseph Pecoraro 2018-10-12 16:03:10 PDT
For 2D it shows the memory use in the Canvas Detail Sidebar. So we have the concept of memory use. We may just need to provide good values for 3D contexts.
Comment 2 Devin Rousso 2018-10-12 16:06:55 PDT
(In reply to Joseph Pecoraro from comment #1)
> For 2D it shows the memory use in the Canvas Detail Sidebar. So we have the
> concept of memory use. We may just need to provide good values for 3D
> contexts.
Both 2D and 3D contexts show the memory usage of the _context_, but not any associated objects (e.g. textures, buffers, etc).  2D doesn't really have a concept of an "associated object", so there was nothing to show.