Open Bug 1006667 Opened 10 years ago Updated 2 years ago

Add SizeOf helpers that choose the right SizeOf{In,Ex}cludingThis function

Categories

(Core :: MFBT, defect)

defect

Tracking

()

People

(Reporter: erahm, Unassigned)

Details

Attachments

(1 file)

In bug 1003479 :njn proposed adding helpers to avoid calling the wrong SizeOf function (|SizeOfIncludingThis| for heap allocated members, |SizeOfExcludingThis| for non-heap allocated members). These helpers would presumably live in MemoryReporting.h. Additionally it might be nice to add helpers for common container types (nsTArray comes to mind).
Whiteboard: [MemShrink]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: