gecko-dev/xpcom
Nicholas Nethercote c2306345d5 Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm.
This patch removes checking of all the callback calls in memory reporter
CollectReport() functions, because it's not useful.

The patch also does some associated clean-up.

- Replaces some uses of nsIMemoryReporterCallback with the preferred
  nsIHandleReportCallback typedef.

- Replaces aCallback/aCb/aClosure with aHandleRepor/aData for CollectReports()
  parameter names, for consistency.

- Adds MOZ_MUST_USE/[must_use] in a few places in nsIMemoryReporter.idl.

- Uses the MOZ_COLLECT_REPORT macro in all suitable places.

Overall the patch reduces code size by ~300 lines and reduces the size of
libxul by about 37 KiB on my Linux64 builds.

--HG--
extra : rebase_source : e94323614bd10463a0c5134a7276238a7ca1cf23
2016-08-24 15:23:45 +10:00
..
base Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm. 2016-08-24 15:23:45 +10:00
build Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm. 2016-08-24 15:23:45 +10:00
components Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm. 2016-08-24 15:23:45 +10:00
doc
ds Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm. 2016-08-24 15:23:45 +10:00
glue Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
idl-parser Bug 1295825 (part 1) - Add a [must_use] attribute to XPIDL. r=froydnj. 2016-08-17 11:08:14 +10:00
io Bug 1296164 (part 3) - Use [must_use] on more nsIFile things. r=froydnj. 2016-08-18 16:43:28 +10:00
libxpt/xptcall
reflect Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm. 2016-08-24 15:23:45 +10:00
string Bug 1295053 (part 4) - Don't use NS_METHOD for remaining xpcom functions. r=froydnj. 2016-08-15 14:49:26 +10:00
system Bug 1287626 - Add globally unique nsIXULAppinfo.uniqueProcessID r=billm 2016-08-10 16:07:40 -07:00
tests Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
threads Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
typelib Bug 1287361 - Remove XPT_NEW. r=khuey. 2016-07-18 14:17:20 +10:00
windbgdlg Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
xpidl Bug 1293784 - Only recurse into xpcom/idl-parser/xpidl once; r=gps 2016-08-09 16:58:18 -04:00
moz.build Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
xpcom-config.h.in
xpcom-private.h.in