Open Bug 1947661 Opened 1 year ago Updated 2 months ago

Add a memory counter for total physical memory

Categories

(Core :: Gecko Profiler, enhancement, P2)

enhancement

Tracking

()

ASSIGNED

People

(Reporter: pbone, Assigned: pbone)

References

(Depends on 1 open bug)

Details

(Whiteboard: [fp])

The memory counter in Firefox tracks memory allocated with malloc() and free(). However bookkeeping, fragmentation and a cache of "dirty memory" all mean that the actual amount of physical memory allocated to firefox is larger, and when freeing memory especially since Bug 1903758 this can "lag behind" the normal memory counter.

I want to add an optional 2nd memory counter to show the total "committed" memory in mozjemalloc. Note that this won't track memory allocated directly by the JS engine for its own heap or some other custom allocators in firefox or other libraries.

The profiler frontend bug for this is: https://github.com/firefox-devtools/profiler/issues/5365

Severity: -- → N/A
Priority: -- → P2
Whiteboard: [fxp]
You need to log in before you can comment on or make changes to this bug.