Commit Graph

354 Commits

Author SHA1 Message Date
Nicholas Nethercote
b3d1c04dad Bug 1054318 - Replace multiple addresses in paths when diffing memory reports. r=erahm. 2014-08-19 18:28:42 -07:00
Nicholas Nethercote
3c0b216764 No bug. Remove two "njn: ..." comments I accidentally left in. r=me.
DONTBUILD because the patches contains only trivial comment changes.
2014-08-06 16:19:55 -07:00
Nicholas Nethercote
d8d1d82534 Bug 1046477 (part 1) - Separate the reporting of the main and static atoms tables. r=froydnj. 2014-07-30 23:06:57 -07:00
Nicholas Nethercote
0ed170d661 Bug 1035570 (follow-up) - Fix a trivial tool-tip botch in about:memory. r=mccr8. 2014-07-28 15:42:17 -07:00
Nicholas Nethercote
b63426bdfd Bug 1035570 (part 3) - DMD: Add DMDAnalyzeHeap(), a heap snapshot function. r=erahm,mccr8.
The patch also adds DMDAnalyzeReports() as a synonym for DMDReportAndDump(),
and deprecates the latter.
2014-05-29 23:46:09 -07:00
Alexandre Poirot
6188942e57 Bug 1027242 - Blacklist mulet's failing tests + expose 'mulet' to ini files; fix previous bustage on a CLOSED TREE, r=ahal 2014-07-02 15:40:56 -07:00
Jim Blandy
39dc0c6097 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Nicholas Nethercote
7b107d5931 Bug 1010064 - Allow memory reports to be anonymized. r=bsmedberg. 2014-05-20 23:06:54 -07:00
Eric Rahm
f2a68b646f Bug 1022965 - Add test for loading memory reports that already have heap-unclassified defined. r=njn 2014-06-09 17:37:20 -07:00
Eric Rahm
0cf06f25b5 Bug 1022004 - Support loading memory reports that already have heap-unclassified defined. r=njn 2014-06-07 18:35:18 -07:00
Nicholas Nethercote
025d668339 Bug 1005489 - Implement better sub-tree sorting and significance detection in about:memory's diff mode. r=mccr8. 2014-05-28 20:37:59 -07:00
Nicholas Nethercote
1897c16447 Bug 1014249 - Beef up the "is DMD enabled?" and "is DMD running?" checks. r=mccr8. 2014-05-22 19:45:14 -07:00
Nicholas Nethercote
751d8ce2c9 Bug 1013652 - Add a "DMD" button to about:memory when DMD is enabled. r=mccr8. 2014-05-20 19:29:37 -07:00
Nicholas Nethercote
9d18edd545 Bug 1005442 - Strip moz-nullprincipal UUIDs when diffing memory reports. r=mccr8. 2014-05-13 18:14:29 -07:00
Jed Davis
8080554f76 Bug 973090 - IPC remoting for child GC/CC logging. r=mccr8, r=bent
This has a few semi-interdependent pieces:

* Factoring out the file opening/closing/renaming from the GC/CC logging.

* Using IPC to have the child log to files that the parent opened.

* Changing nsIMemoryInfoDumper.dumpGCAndCCLogsToFile to report completion
  of child process logging (which was impossible before this, and which is
  needed to have a meaningful test case).

* Changing about:memory to dump logs for child processes, matching the
  behavior of the "Measure" button, because it can tell the user where
  they are now.

* Add a test for multiprocess GC/CC log dumping (only of the XPCOM
  interface, not by clicking buttons and scraping the about:memory page,
  but done as a chrome mochitest to start remote browsers); based on
  test_memoryReporters2.xul in the same directory.
2014-05-13 13:13:00 -04:00
Nicholas Nethercote
2b18091e47 Bug 986300 - Fix a tricky corner case involving memory report diffs. r=kats. 2014-03-20 19:44:23 -07:00
Gregory Szorc
dffb8830ba Bug 969021 - Part 1: Consolidate moz.build data into parent moz.build files; r=ted
Many moz.build files define things that could be defined in parent
moz.build files. Keeping the number of moz.build files low helps with
build times due to less I/O and fewer directories traversed.

This patch eliminates a lot of moz.build files by moving their content
into parent moz.build files.
2014-02-06 13:00:20 -08:00
Wes Johnston
498e767862 Bug 961369 - Fallback when no file picker available in about:memory. r=njn,mfinkle 2014-02-05 10:04:32 -08:00
Nicholas Nethercote
2fba2310da Bug 903131 - Add save GC/CC logs buttons to about:memory. r=njn,mccr8. 2014-01-31 14:43:08 -08:00
Nils Maier
b83dbe6bf0 Bug 950391 - Add nsIMemoryReporterManager.unregisterStrongReporter. r=njn
Also do not allow to register non-native components as weak reporters.
2013-12-18 13:00:03 -05:00
Gregory Szorc
6e1333520a Bug 774572 - Part 2: Define JAR_MANIFESTS in moz.build files; r=glandium
Every directory with a jar.mn now has JAR_MANIFESTS defined in its
moz.build file.

We also removed the may_skip special consideration of jar.mn files
because this information is now available during tier traversal by the
reader courtesy of the variables being present in moz.build files.
2013-12-10 16:18:11 +09:00
Nicholas Nethercote
6101f897c9 Bug 945973 (part 4) - Add SystemMemoryReporter, which presents Linux-specific, system-wide memory measurements taken from the OS. r=glandium. 2013-12-04 19:32:50 -08:00
Nicholas Nethercote
a90995034a Bug 945973 (part 3) - Fix some trivial reporter/report confusions in aboutMemory.js. r=mccr8. 2013-12-03 20:20:15 -08:00
Nicholas Nethercote
171cce93cd Bug 945973 (part 2) - Don't complain if there aren't any "explicit" reports for a process. r=mccr8. 2013-12-03 20:19:41 -08:00
Nicholas Nethercote
9302f165f7 Bug 945973 (part 1) - Remove about:memory's is-a-sentence description check. r=mccr8. 2013-12-03 20:10:59 -08:00
Nicholas Nethercote
d59d2c5af8 Bug 947802 (part 2) - Replace enumerateReporters() with getReportsForThisProcess(). r=mccr8. 2013-12-01 16:29:37 -08:00
Nicholas Nethercote
1dfdccfa28 Bug 946484 - Ignore "redundant/"-prefixed memory reports. r=khuey. 2013-12-04 16:21:55 -08:00
Nicholas Nethercote
2c68a35af2 Bug 927740 (part 2) - Make about:memory's "Minimize Memory Usage" button affect child processes, like the "GC" and "CC" buttons. r=khuey. 2013-12-02 20:07:02 -08: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
Nicholas Nethercote
2c3588a63d Bug 939385 (part 5) - Test vsizeMaxContiguous. r=froydnj. 2013-11-19 20:05:44 -08:00
Nicholas Nethercote
ee8f1d5669 Bug 939385 (part 3, attempt 2) - Expose vsizeMaxContiguous to about:memory. r=froydnj. 2013-11-18 22:37:38 -08:00
Carsten "Tomcat" Book
084f201a3f Backed out changeset 65048ac4ae6f (bug 939385) for perma failures/orange in XPCShell Tests on Linux and OS X on a CLOSED TREE 2013-11-19 11:47:41 +01:00
Nicholas Nethercote
638cf03ec1 Bug 939385 (part 3) - Expose vsizeMaxContiguous to about:memory. r=froydnj. 2013-11-18 22:37:38 -08:00
Nicholas Nethercote
c10613ba57 Bug 929797 - Implement proper memory reporting for child processes. r=khuey. 2013-10-22 22:26:24 -07:00
Nicholas Nethercote
01f0915e8a Bug 933502 - Make memory reporter mochitests work with ASAN. r=gps,me. 2013-10-31 19:19:10 -07:00
Nicholas Nethercote
9d48f3644e Bug 930851 (part 4) - Prepare aboutMemory.js for asynchronous memory report processing. r=khuey. 2013-10-15 18:08:35 -07:00
Nicholas Nethercote
4a9336d865 Bug 930851 (part 2) - Inline some functions in aboutMemory.js that have a single call site. r=johns. 2013-10-15 17:16:13 -07:00
Nicholas Nethercote
053d00aaa7 Bug 930851 (part 1) - Make child process naming consistent in both memory reporting paths. r=khuey. 2013-10-24 20:47:48 -07:00
Nicholas Nethercote
77c15fac5f Bug 929826 - Improve about:memory's UI for the multi-process case. r=johns. 2013-10-22 22:27:58 -07: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
Nathan Froyd
9dfe111e94 Bug 924638 - use Services.jsm more in about:memory; r=njn 2013-10-08 16:28:21 -04:00
Gregory Szorc
a126585769 Bug 920223 - Part 2: Mass convert MOCHITEST_CHROME_FILES to manifests; rs=Ms2ger 2013-09-30 09:52:01 +02:00
Ed Morley
7bd637970d Backed out changeset 68b6b152f51a (bug 920223) 2013-09-30 12:50:09 +01:00
Gregory Szorc
365ec41916 Bug 920223 - Part 2: Mass convert MOCHITEST_CHROME_FILES to manifests; rs=Ms2ger 2013-09-30 09:52:01 +02: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
a0d4ec6468 Bug 913260 (part 3) - Formalize the concept of "distinguished amounts" in the memory reporter manager. r=mccr8. 2013-09-19 15:52:28 -07:00