Commit Graph

86 Commits

Author SHA1 Message Date
Juan Gomez
89035d527e Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Ryan VanderMeulen
7aba9d7002 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez
7323e89a40 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-06-24 14:11:00 -04:00
Cameron McCormack
07c50e206f Bug 1168299 - Break out style struct memory usage reporting from pres-shell. r=njn 2015-05-27 12:08:42 +10:00
Bobby Holley
41099b29ec Bug 951991 - Assert against calling GetCurrentInnerWindow on an inner. r=smaug
The current convention is that this returns null when invoked on an inner, which
callers may or may not handle correctly. But when we start using GetEntryGlobal,
we'll end up with a lot of inners where we used to get outers, so we should get
strict about this now.
2014-08-19 12:02:05 -07:00
Nicholas Nethercote
7b107d5931 Bug 1010064 - Allow memory reports to be anonymized. r=bsmedberg. 2014-05-20 23:06:54 -07:00
Andrew McCreight
2ea737a668 Bug 994090 - Use do_CreateInstance in nsWindowMemoryReport. r=smaug 2014-05-15 09:35:00 -04:00
Birunthan Mohanathas
eeb9aaaa94 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
Neil Rashbrook
ccc6211ccc Bug 514280 Remove concrete classes from interface maps r=bsmedberg 2014-03-28 08:40:13 +00:00
Andrew McCreight
37c97379e7 Bug 977940, part 2 - Don't automatically trigger the ghost window detector during ICC. r=smaug 2014-03-08 05:38:53 -08:00
Andrew McCreight
640767370c Bug 977940, part 1 - Don't run the ghost window detector more than every 45 seconds. r=smaug 2014-03-08 05:38:52 -08:00
Andrew McCreight
b8a6c217bb Bug 966762 - Add chrome JS function to unlink ghost windows. r=smaug 2014-02-20 12:55:40 -08:00
Andrew McCreight
524b25883d Backout bug 966762 for Valgrind leaks 2014-02-19 17:17:58 -08:00
Andrew McCreight
cace651a0c Bug 966762 - Add chrome JS function to unlink ghost windows. r=smaug 2014-02-19 13:27:15 -08:00
Nathan Froyd
afb2c7a0c5 Bug 957609 - eschew code duplication in macros for CollectWindowReports; r=njn 2014-01-10 10:15:53 -05:00
Nicholas Nethercote
4114de08a9 Bug 957021 - Fix messed-up memory reporter paths. r=khuey. 2014-01-07 17:02:23 -08:00
Ehsan Akhgari
68bfe70f09 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.h \
         -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 PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Nicholas Nethercote
49912eb578 Bug 955942 (part 2) - Remove MemoryUniReporter. r=mccr8. 2013-12-07 22:09:10 -08:00
Nicholas Nethercote
3f5924c2e0 Bug 955942 (part 1) - Remove unnecessary nsIMemoryReporter qualifiers from UNITS_* and KIND_* constants. r=mccr8. 2013-12-11 11:59:39 -08:00
Nathan Froyd
3351670052 Bug 946781 - part 4 - revert measuring the proto and iface cache on nsGlobalWindow (bug 922094); r=me 2013-12-06 13:11:53 -05:00
Nicholas Nethercote
0e122b9e83 Bug 947798 (part 1) - Rename NS_MEMORY_REPORTER_MALLOC_SIZEOF_FUN as MOZ_DEFINE_MALLOC_SIZE_OF. r=mccr8. 2013-12-07 21:38:32 -08:00
Nathan Froyd
96bad0df62 Bug 922094 - part 1 - report proto/iface cache size to about:memory; r=njn
This is just the nsWindowMemoryReporter bits; the actual measurements come later.
2013-11-21 09:13:31 -05:00
Nicholas Nethercote
0d8c64efcc Bug 936964 (part 7, attempt 2) - Make lots of classes report their own memory consumption, instead of using a separate reporter class. r=mccr8,sr=bz.
* * *
Bug 936964 (part 7b) - Fix a use-after-free found by ASan.
2013-11-07 16:35:30 +11:00
Nicholas Nethercote
188ae9dd5f Bug 943660 (attempt 2) - Remove nsIMemoryReporter::name, because it's (a) unused and (b) a bad idea. r=mccr8. 2013-11-26 18:38:50 -08:00
Ehsan Akhgari
65aaebab72 Backed out 9 changesets (bug 943660, bug 936964) because of ASAN use-after-free crashes on browser-chrome and mochitest-other
Backed out changeset 85486c4aa3d8 (bug 936964)
Backed out changeset 25312eb71998 (bug 936964)
Backed out changeset 6dbb8333960c (bug 936964)
Backed out changeset da6465ad476f (bug 936964)
Backed out changeset a87ffc992f38 (bug 936964)
Backed out changeset 4ae3a61182db (bug 936964)
Backed out changeset 34e9c3137804 (bug 936964)
Backed out changeset fd1459e71585 (bug 936964)
Backed out changeset 3e8a701d8bdc (bug 943660)

Landed on a CLOSED TREE
2013-11-27 20:05:00 -05:00
Nicholas Nethercote
c363b9d028 Bug 936964 (part 7) - Make lots of classes report their own memory consumption, instead of using a separate reporter class. r=mccr8,sr=bz. 2013-11-07 16:35:30 +11:00
Nicholas Nethercote
30104bd7d7 Bug 943660 - Remove nsIMemoryReporter::name, because it's (a) unused and (b) a bad idea. r=mccr8. 2013-11-26 18:38:50 -08:00
Birunthan Mohanathas
fd194c1851 Bug 784739 - Switch from NULL to nullptr in dom/ (1/2); r=ehsan 2013-10-28 10:04:12 -04:00
Nils Maier
3236a58b33 Bug 929297 - Part 2: Avoid calling amIAddonManager in reporters off the main process. r=njn 2013-10-28 04:53:00 +00:00
Kyle Huey
7b7ebb37b7 Bug 904720: Count event listeners. r=njn,smaug 2013-10-28 17:47:18 +08:00
Nicholas Nethercote
7d16eaa962 Bug 918207 - Support per-tab memory profiling. r=billm,mccr8,till,smaug,nfroyd. 2013-10-22 14:53:26 -07:00
Nicholas Nethercote
e3c39c80ab Bug 921923 (part 3) - Make multi-output sizeOfFoo() functions more consistent in content/, dom/ and layout/. r=till. 2013-09-30 16:20:23 -07:00
Nicholas Nethercote
ab290a0d9f Bug 913260 (part 4) - Use distinguished amounts for all the memory measurements done by telemetry. r=mccr8.
CLOSED TREE
2013-09-19 15:52:30 -07:00
Nicholas Nethercote
e9f1496c1c Bug 913260 (part 2) - Tweak ghost window reporters. r=mccr8. 2013-09-18 19:01:29 -07:00
Phil Ringnalda
365b4e8b19 Backed out 3 changesets (bug 913260)
CLOSED TREE

Backed out changeset 9195be8a50cb (bug 913260)
Backed out changeset 09c71a3e7b85 (bug 913260)
Backed out changeset 8a8691a26012 (bug 913260)
2013-09-24 20:31:00 -07:00
Nicholas Nethercote
772ad0dd26 Bug 913260 (part 4) - Use distinguished amounts for all the memory measurements done by telemetry. r=mccr8. 2013-09-19 15:52:30 -07:00
Nicholas Nethercote
956e6f07f5 Bug 913260 (part 2) - Tweak ghost window reporters. r=mccr8. 2013-09-18 19:01:29 -07:00
Nicholas Nethercote
e4526879f6 Bug 911641 (part 1) - Remove about:compartments, and show the compartment and ghost window lists into about:memory. r=johns. 2013-09-03 20:05:17 -07:00
Nicholas Nethercote
c7fbf6a742 Bug 910517 (3rd attempt) - Remove nsIMemoryReporter, and rename nsIMemoryMultiReporter as nsIMemoryReporter. r=mmcr8. 2013-08-27 16:24:51 -07:00
Robert O'Callahan
51222bdd45 Bug 910989. Remove nsTHashtable::Init, fallible allocation, and MT hashtables. r=ehsan,bsmedberg 2013-09-02 20:41:57 +12:00
Phil Ringnalda
6e1be50ee9 Back out 4537337759b7 (bug 910517) because nobody expects the talos inquisition 2013-09-04 22:42:06 -07:00
Nicholas Nethercote
d7fc3db766 Bug 910517 - Remove nsIMemoryReporter, and rename nsIMemoryMultiReporter as nsIMemoryReporter. r=mmcr8. 2013-08-27 16:24:51 -07:00
Nicholas Nethercote
d3c64ed5fa Bug 831193 (part 21) - Make NumGhostsReporter a subclass of MemoryReporterBase. r=jlebar. 2013-08-22 22:26:23 -07:00
Ehsan Akhgari
6c2dd7f365 Bug 905353 - Minimize the #includes in dom/base; r=jst 2013-08-15 14:17:48 -04:00
Ehsan Akhgari
bf2159dbe4 Bug 904264 - Don't #include js/MemoryMetrics.h in xpcpublic.h; r=bholley 2013-08-13 13:51:50 -04:00
Justin Lebar
1dbd4e9735 Bug 888693 - Add a null-check to nsWindowMemoryReporter.cpp so taking a memory report doesn't crash B2G. r=nmaier 2013-06-30 09:39:10 -07:00
Nils Maier
ba389d04ba Bug 846019 - Part 2: Prefix memory reports with add-on ids. r=njn 2013-06-14 22:48:28 -04:00
Aryeh Gregor
6f0fa40fb4 Bug 867101 - Fix more implicit conversion to already_AddRefed; r=Ms2ger 2013-04-28 14:52:10 +03:00
David Zbarsky
96800c4570 Bug 861729 - Remove nsPIDOMWindow::GetExtantDocument r=Ms2ger 2013-04-24 00:22:37 -04:00
Nicholas Nethercote
2748d6af62 Bug 859657 (part 2) - Remove nsIMemoryMultiReporter.explicitNonHeap because it's more trouble than it's worth; also remove the "explicit" single reporter. r=jlebar. 2013-04-11 20:52:32 -07:00