Bug 190546

Summary: Web inspector should show memory use data for canvas and WebGL
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: hi, inspector-bugzilla-changes, joepeck, simon.fraser
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 175485    

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.