mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 19:55:39 +00:00
ba94f2d107
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 |
||
---|---|---|
.. | ||
init | ||
test | ||
greprefs.js | ||
moz.build | ||
nsIPrefBranch.idl | ||
nsIPrefLocalizedString.idl | ||
nsIPrefService.idl | ||
nsIRelativeFilePref.idl | ||
Preferences.cpp | ||
Preferences.h |