Граф коммитов

38 Коммитов

Автор SHA1 Сообщение Дата
Tom Tromey d2667a2b27 Bug 1060419 - make AppendPrintf and nsPrintfCString use Printf.h, r=froydnj
MozReview-Commit-ID: 2E8FoiNxU8L

--HG--
extra : rebase_source : 810ac727bef0751f24edea18c52e0ec170bf367d
2016-12-14 09:32:21 -07:00
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
Kan-Ru Chen b6d880aca1 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES


--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Birunthan Mohanathas 9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Chris Peterson 0dbaae1ce2 Bug 1204403 - Fix -Wshadow warnings in xpcom. r=mccr8 2015-09-07 23:56:16 -07:00
Kyle Huey ee4f5ba9fb Bug 1185470: Remove 'Get' prefixes from hashtable iterator methods. r=froydnj 2015-07-20 20:21:28 +08:00
Nicholas Nethercote 945ee9edd6 Bug 1181445 (part 8) - Use nsBaseHashTable::Iterator in SystemMemoryReporter. r=froydnj.
--HG--
extra : rebase_source : 1629f83406d7997fd8e21f3cb6558ca09adb109c
2015-07-09 16:54:59 -07:00
Ehsan Akhgari 883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Ben Kelly 2ebbf80a47 Bug 1126985 Fix xpcom/base build with --enable-warnings-on-errors. r=froydnj 2015-01-28 15:11:18 -05:00
Daniel Holbert 98fd7110d5 Bug 1125632 followup: Mark remaining CollectReports impls in nsMemoryReporterManager.cpp and SystemMemoryReporter.cpp as MOZ_OVERRIDE. 2015-01-27 09:48:54 -08:00
Ms2ger 539b65b375 Bug 1111190 - Fix sign-compare warnings in CollectIonReports; r=froydnj
We only use kNumFields to compare it to the result of int sscanf(...).
2014-12-13 14:46:03 +01:00
Nicholas Nethercote eb4d250262 Bug 1067711 (attempt 2) - Fix an assertion failure in the System memory reporter. r=erahm. 2014-09-17 18:23:33 -07:00
Carsten "Tomcat" Book 186ce26b02 Backed out changeset ba6a9e60d2c6 (bug 1067711) for XPCshell Test failures 2014-09-18 11:50:34 +02:00
Nicholas Nethercote 4a7eef6b52 Bug 1067711 - Fix an assertion failure in the System memory reporter. r=erahm.
--HG--
extra : rebase_source : 06fa4b0d706414901ce2475e987067d5cb4f0f6f
2014-09-17 18:23:33 -07:00
Ehsan Akhgari b1b56df2fe Bug 1061254 - Fix more bad implicit constructors in misc. components; r=bsmedberg 2014-09-02 18:24:49 -04:00
Birunthan Mohanathas 80ef08ccd8 Bug 1046841 - Fix more style violations in previously touched .cpp files in xpcom/. r=froydnj 2014-08-25 12:17:15 -07:00
Eric Rahm 87668897f6 Bug 1056962 - Part 1: Move GetThreadName to LinuxUtils. r=jld 2014-08-22 16:35:29 -07:00
Eric Rahm 64c1102336 Bug 1038888 - Extend system memory reporter to report ion memory. r=njn
--HG--
extra : rebase_source : 39dbc0a696d67c1a239876ec8ca412527fc2712e
2014-07-23 16:36:27 -07:00
Eric Rahm 99c9bcaeba Bug 1038921 - Extend system memory reporter to report kgsl memory. r=njn 2014-07-21 17:25:21 -07:00
Eric Rahm 4b7b1edadc Bug 1024788 - CollectPmemReports leaks |sizeFile| on fscanf error. r=njn 2014-07-03 16:02:59 -07:00
Benoit Jacob 81effa4bca Bug 1028588 - Fix dangerous public destructors in xpcom/ - r=bsmedberg,khuey,nfroyd 2014-06-30 18:11:53 -04:00
Wes Kocher 03da42e8b1 Backed out 4 changesets (bug 1028588) for build bustage
Backed out changeset 13a8bae671ca (bug 1028588)
Backed out changeset 19a19833f1d6 (bug 1028588)
Backed out changeset d5fae80054de (bug 1028588)
Backed out changeset 5942ad3859b8 (bug 1028588)
2014-06-30 15:50:19 -07:00
Benoit Jacob 522e4724cc Bug 1028588 - Fix dangerous public destructors in xpcom/ - r=bsmedberg,khuey,nfroyd 2014-06-30 18:11:53 -04:00
Jed Davis 0d80c18130 Bug 1027434 - Report non-main-thread stacks in SystemMemoryReporter. r=njn
This depends on tagged anonymous memory in order to avoid stacks merging
with adjacent non-stack virtual memory areas.
2014-06-24 12:15:32 -07:00
Nicholas Nethercote aaf6fb2124 Bug 1010064 - Allow memory reports to be anonymized. r=bsmedberg.
--HG--
extra : rebase_source : 5eb756b17a97e751deb0f47e909fdb35533cb23b
2014-05-20 23:06:54 -07:00
Jed Davis 80b5f82cde Bug 1011350 - Collect TaggedAnonymousMemory info in SystemMemoryReporter. r=njn
To allow flexibility in tagging, and integrate with non-Gecko uses of
this facility (e.g., Bionic's malloc() tags with "libc_malloc"), the
fixed list of memory kinds used to aggregate across processes is replaced
with arbitrary strings.
2014-06-17 17:56:00 +02:00
Birunthan Mohanathas 59b969f7f4 Bug 869836 - Part 8: Use `Append('c')` instead of `Append("c")`. r=ehsan 2014-05-22 06:48:52 +03:00
Birunthan Mohanathas aea8617b92 Bug 869836 - Part 7: Use AppendLiteral instead of Append where possible. r=ehsan 2014-05-22 06:48:51 +03:00
Birunthan Mohanathas fb371cca99 Bug 995730 - Fix style violations in xpcom/base/. r=froydnj,continuation 2014-05-13 20:41:38 +03:00
Birunthan Mohanathas 8f4f3e6fea Bug 995730 - Change xpcom/base/ to use 2 space indentation
This also removes trailing whitespace in reindented files.
2014-05-05 20:30:39 +03:00
Eric Rahm 41bcb2678a Bug 999473 - report number of open file descriptions (fd) in about:memory. r=njn 2014-04-25 13:00:15 -07:00
Ryan VanderMeulen 2825c84a5b Backed out changeset 83d914c3431d (bug 999473) for Linux mochitest-other failures. 2014-05-01 16:45:21 -04:00
Eric Rahm 7659250728 Bug 999473 - report number of open file descriptions (fd) in about:memory. r=njn 2014-04-25 13:00:15 -07:00
Birunthan Mohanathas 5f1fde8824 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Eric Rahm 4ebc8a29dc Bug 972170 - Add zram reporting to about:memory. r=njn 2014-02-19 11:08:38 -08:00
Thomas Zimmermann 2102159214 Bug 968849: Fix GCC warnings about uninitialized variables, r=froydnj 2014-02-06 17:57:38 +01:00
Jed Davis a693e40605 Bug 948204 - Add pmem regions to the system memory report. r=njn 2014-01-14 10:03:31 -05:00
Nicholas Nethercote 12910b47d0 Bug 945973 (part 4) - Add SystemMemoryReporter, which presents Linux-specific, system-wide memory measurements taken from the OS. r=glandium.
--HG--
extra : rebase_source : 032d1d2944b790ac9e9e4d7f18c8ac9d79858ef3
2013-12-04 19:32:50 -08:00