Bug 204454

Summary: Web Inspector misreports memory when sending ArrayBuffers to worker
Product: WebKit Reporter: Konstantin Kaefer <mail>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: hi
Priority: P2    
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Inspector showing 1.7 GB of memory usage
none
Activity Monitor showing 112 MB of memory usage
none
Reproduction HTML page none

Description Konstantin Kaefer 2019-11-21 08:33:19 PST
Created attachment 384056 [details]
Inspector showing 1.7 GB of memory usage

When sending ArrayBuffers from the main thread to workers, the Inspector doesn't pick up that the object gets garbage collected. It reports gigabytes of memory usage when in reality, the page doesn't have increased memory usage. See attached screenshots and reproduction page.
Comment 1 Konstantin Kaefer 2019-11-21 08:33:54 PST
Created attachment 384057 [details]
Activity Monitor showing 112 MB of memory usage
Comment 2 Konstantin Kaefer 2019-11-21 08:34:19 PST
Created attachment 384058 [details]
Reproduction HTML page