Closed Bug 1831852 Opened 2 years ago Closed 2 years ago

Telemetry runs jemalloc_stats twice, iterating over the heap unnecessarily

Categories

(Core :: XPCOM, task)

task

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: pbone, Assigned: pbone)

References

Details

Attachments

(2 files)

The two calls here:

https://searchfox.org/mozilla-central/source/xpcom/base/MemoryTelemetry.cpp#285-287

Each iterate over the jemalloc heap. They should be able to iterate over the heap once and re-use the data.

This is a very minor optimisation, I'm working on it because I noticed it when I begun making other changes to the code here.

The telemetry component is for bugs related to the data collection system. Product or consumer related bugs should live in the Bugzilla component of the owner of the collecting piece.

Component: Telemetry → XPCOM
Product: Toolkit → Core
Blocks: 1824655
Status: NEW → ASSIGNED
Pushed by pbone@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5b84a41087a1 Use const refs for the HeapOverhead parameter r=mccr8 https://hg.mozilla.org/integration/autoland/rev/e0498c17978e Avoid extra call to jemalloc_stats in telemetry r=mccr8
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: