gecko-dev/modules/libpref
Nicholas Nethercote ba94f2d107 Bug 1417746 - Overhaul libpref's memory reporter. r=glandium
This splits the measurements into several buckets, like so:

> 718,528 B (00.40%) -- preferences
> ├──262,176 B (00.14%) ── hash-table
> ├──181,952 B (00.10%) ── callbacks
> ├──122,880 B (00.07%) ── pref-name-arena
> ├───91,872 B (00.05%) ── root-branches
> ├───38,296 B (00.02%) ── string-values
> ├───21,272 B (00.01%) ── cache-data
> └───────80 B (00.00%) ── misc

The patch also measures some things that were previously overlooked.

- String pref values. (The old code had a comment that incorrectly claimed they
  were allocated out of an arena.)

- The PrefCallback objects pointed to by entries in nsPrefBranch::mObservers.

And it makes the code more like typical reporters.

- It removes the "AndOtherStuff" from Preferences' measuring method, and
  measuring those global structures in
  PreferenceServiceReporter::CollectReports().

- It adds `const` where appropriate.

MozReview-Commit-ID: dyNg7ldQdh
2017-11-16 15:55:58 +11:00
..
init Backed out changeset c2bf7ca0839c (bug 1382427) for failing reftests r=backout on a CLOSED TREE 2017-11-15 14:22:43 +02:00
test Bug 1414096 (attempt 2) - Remove support for nsISupportsString values in nsPrefBranch::{get,set}ComplexValue(). r=florian. 2017-11-10 09:07:48 +11:00
greprefs.js Bug 1337748 - Move security-prefs.js from netwerk/ to security/manager/. r=keeler,mcmanus 2017-02-08 21:16:27 +09:00
moz.build Bug 1407112 (part 4) - Merge prefapi.{cpp,h} and prefapi_private_data.h into Preferences.cpp. r=glandium. 2017-10-11 21:02:03 +11:00
nsIPrefBranch.idl Bug 1414096 (attempt 2) - Remove support for nsISupportsString values in nsPrefBranch::{get,set}ComplexValue(). r=florian. 2017-11-10 09:07:48 +11:00
nsIPrefLocalizedString.idl Bug 1409635 (part 2) - Fix up nsIPrefLocalizedString. r=froydnj. 2017-10-18 16:51:56 +11:00
nsIPrefService.idl Bug 1413413 (part 2) - Remove support for extensions having their own prefs file. r=glandium,kmag. 2017-10-31 16:34:57 +11:00
nsIRelativeFilePref.idl
Preferences.cpp Bug 1417746 - Overhaul libpref's memory reporter. r=glandium 2017-11-16 15:55:58 +11:00
Preferences.h Bug 1417746 - Overhaul libpref's memory reporter. r=glandium 2017-11-16 15:55:58 +11:00