Closed Bug 1692644 Opened 2 months ago Closed 2 months ago

Add memory reporting to Stencil data structures

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: tcampbell, Assigned: tcampbell)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Add methods for the mozilla::MallocSizeOf system to report memory usage for the stencil data structures. This will exclude external data that uses RefPtrs or is managed by the GC.

Add the general memory reporting code and then hook it up to ParseTask as a
concrete use case. Note that RefPtr targets are not counted directly as part
of the stencil. This may under-count things like ScriptSource that have not
been linked into the VM yet. This data is only used for the memory report
tool and under-counting will simply show up as heap-unclassified and we can
improve in future.

Depends on D105108

Pushed by tcampbell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c0d13f97c8dc
Simplify StencilDelazificationSet. r=arai
https://hg.mozilla.org/integration/autoland/rev/627d3d446e0b
Add memory reporting for js::frontend::CompilationStencil. r=arai
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.