Closed Bug 1045241 Opened 10 years ago Closed 10 years ago

Make memory reporting for LocationService more normal

Categories

(Core :: DMD, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: mccr8, Assigned: mccr8)

References

Details

Attachments

(1 file, 1 obsolete file)

For some reason, the SizeOf methods of LocationService don't take MallocSizeOf arguments, but just directly call into a fixed MallocSizeOf function.  This prevents it from being used in other places.
Attachment #8464082 - Flags: review?(n.nethercote)
I also tried to convert it the style of the method itself to something matching more what you see elsewhere, so any nits with regards to that are welcome.
Attachment #8464082 - Flags: review?(n.nethercote)
Somehow I managed to mess up the indentation.
Attachment #8464082 - Attachment is obsolete: true
Attachment #8464142 - Flags: review?(n.nethercote)
Comment on attachment 8464142 [details] [diff] [review]
Make memory reporting for LocationService more normal.

Review of attachment 8464142 [details] [diff] [review]:
-----------------------------------------------------------------

::: memory/replace/dmd/DMD.cpp
@@ +652,1 @@
>        // Don't measure mLibrary because it's externally owned.

Probably move this comment to above the declaration of |n|.
Attachment #8464142 - Flags: review?(n.nethercote) → review+
(In reply to Nicholas Nethercote [:njn] from comment #5)
> Probably move this comment to above the declaration of |n|.

Done.

https://hg.mozilla.org/integration/mozilla-inbound/rev/11f68c58e5db
https://hg.mozilla.org/mozilla-central/rev/11f68c58e5db
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: