Bug 204454 - Web Inspector misreports memory when sending ArrayBuffers to worker
Summary: Web Inspector misreports memory when sending ArrayBuffers to worker
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-21 08:33 PST by Konstantin Kaefer
Modified: 2019-11-22 15:46 PST (History)
1 user (show)

See Also:


Attachments
Inspector showing 1.7 GB of memory usage (134.16 KB, image/png)
2019-11-21 08:33 PST, Konstantin Kaefer
no flags Details
Activity Monitor showing 112 MB of memory usage (121.11 KB, image/png)
2019-11-21 08:33 PST, Konstantin Kaefer
no flags Details
Reproduction HTML page (395 bytes, text/html)
2019-11-21 08:34 PST, Konstantin Kaefer
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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