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)
Core
XPCOM
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.
Comment 1•2 years ago
|
||
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
Assignee | ||
Comment 2•2 years ago
|
||
Assignee | ||
Comment 3•2 years ago
|
||
Depends on D177595
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
Comment 5•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5b84a41087a1
https://hg.mozilla.org/mozilla-central/rev/e0498c17978e
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox115:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•