Commit Graph

275 Commits

Author SHA1 Message Date
Nicholas Nethercote
b5b1a4609e Bug 1145007 (part 2) - Add a "resident-peak" distinguished amount and memory reporter on Unix. r=erahm.
--HG--
extra : rebase_source : 3fb7c2020d3abd29fdbf8042a0932b24d92b234b
2015-03-19 15:16:37 -07:00
Nicholas Nethercote
1d7a94e346 Bug 1145007 (part 1) - Test |residentUnique| in test_memoryReporters.xul. r=erahm.
It is the only distinguished amount in nsIMemoryReporterManager that isn't
being tested.

--HG--
extra : rebase_source : a9ba01010a464c6a17e7205212e813c6db4a3d5c
2015-03-18 20:45:56 -07:00
Sebastian Hengst
394a2dd441 Bug 1143470 - Add BUG_COMPONENT to moz.build files in toolkit and xulrunner. r=gavin 2015-03-15 19:36:24 +01:00
Jonathan Griffin
d1c61bc9b6 Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Jon Coppeard
439686762a Bug 1134255 - Add breakdown of allocated and unused GC things by kind in memory reports r=njn
--HG--
extra : rebase_source : aaec1857d252090c2aea9fc8e45a2a82ac492b6c
2015-02-19 11:56:00 +00:00
Christoph Kerschbaumer
fe39ce0539 Bug 1087744: Make JS callers of ios.newChannel call ios.newChannel2 in toolkit/ (r=gijs) 2014-10-24 15:25:34 -07:00
Joel Maher
97f62104fb Bug 1110982 - Disabled tests for oth chunk and leaks (run-by-dir). r=RyanVM 2014-12-27 00:44:52 +05:30
Nicholas Nethercote
84a315c38c Bug 1127570 - Include measurement origins in about:memory's title bar. r=mccr8.
This changes about:memory so that whenever measurements are shown, the origin
of those measurements is visible in the title bar.

- "about:memory (live measurement)" is used when you do "Measure".

- "about:memory (<filename>)" is used when you do "Load...".

- "about:memory (diff of <filename1> and <filename2>)" is used when you do
  "Load and diff...".

- "about:memory" is used in all other cases, e.g. when about:memory is first
  loaded, and after all non-measurement actions (GC, GC, etc.)

--HG--
extra : rebase_source : 4d1da88d17481916cda5018b7a8298e67c916274
2015-02-02 16:53:49 -08:00
Nicholas Nethercote
231a4d7a81 Bug 1127645 - Remove "Read from clipboard" button from about:memory. r=mccr8.
Now that memory reports are gzipped by default (not to mention *huge* when
unzipped), this button is no longer useful. A "load from URL" button (bug
859603) would be much better, but for now let's just remove the useless
functionality so it doesn't get in the way.

--HG--
extra : rebase_source : f6bad57203ce8a7173f876d578413c4f2cb3cc22
2015-02-02 16:44:48 -08:00
Ehsan Akhgari
900c9f9de0 Bug 1119503 - Part 3: Change test_aboutmemory*.xul in order to not expect a newline at the very end of the copied text; r=njn
After the patches in this bug, we only inject a newline at block element
boundaries.  In order to get these tests to pass, we just compare the
trimmed version of the actual and expected tests.
2015-01-28 10:01:23 -05:00
Wes Kocher
a092ea34c3 Backed out 5 changesets (bug 1119503) for PGO m-oth failures so I can a=merge today
Backed out changeset 05ee3ae06643 (bug 1119503)
Backed out changeset 5ccef8ecf319 (bug 1119503)
Backed out changeset 8c2129ff8897 (bug 1119503)
Backed out changeset ff9012ee428a (bug 1119503)
Backed out changeset af9f4a6a7b78 (bug 1119503)
2015-01-27 16:04:59 -08:00
Ehsan Akhgari
b378354abd Bug 1119503 - Part 3: Change test_aboutmemory.xul in order to not expect a newline at the very end of the copied text; r=njn
After the patches in this bug, we only inject a newline at block element
boundaries.
2015-01-27 13:25:10 -05:00
Brad Lassey
36b059df69 bug 1096718 - - display time measured spent in each compartment r=billm,mossop 2015-01-13 17:38:05 -08:00
Nicholas Nethercote
97b5d348cc Bug 1014341 (part 1) - Remove trace-malloc. r=dbaron,glandium.
--HG--
extra : rebase_source : 771710c5427141d738eef112fab00951eb8e20e3
2015-01-07 16:13:03 -08:00
Nicholas Nethercote
cda9c17f4b Bug 1070251 - Anonymize non-chrome inProcessTabChildGlobal URLs in memory reports when necessary. r=khuey.
--HG--
extra : rebase_source : a204dbae9f853be3ade1cdebfa0f4ac01fa3a174
2014-09-24 19:08:20 -07:00
Nicholas Nethercote
61271da02f Bug 1059612 - Filter diff-breaking info from memory reports in a more rigorous fashion. r=erahm.
--HG--
extra : rebase_source : 373ae65ebe08a6da9ff63eb3394bc56e56d2fcfe
2014-09-17 21:22:57 -07:00
Shu-yu Guo
15262d36a9 Bug 1001090 - Part 4: Fix errors in chrome code. (r=zombie,gavin,fitzgen,dcamp,bgrins,fabrice,gwagner,margaret,mrbkap,mak,njn,vicamo) 2014-09-15 16:30:46 -07:00
Nicholas Nethercote
985af86677 Bug 1061960 - In about:memory, support the loading of memory reports embedded in crash dumps. r=mccr8.
--HG--
extra : rebase_source : c62c396c0b0a4500761242c1dca5ae2ce04b0af4
2014-09-04 16:04:54 -07:00
Nicholas Nethercote
94f8ec5cee Bug 1061066 - Make DMD work properly with e10s. r=mccr8.
--HG--
extra : rebase_source : 35ff4f1b3c7d4af91cbc5f813030136ffc3b70e4
2014-09-01 17:22:53 -07:00
Josh Aas
8185a36bb0 Bug 1011225: Improve e10s process naming on OS X. Patch started by Benoit Girard, completed by Josh Aas. r=njn,benwa 2014-08-26 12:03:09 -05:00
Eric Rahm
4c04003540 Bug 1056954 - Normalize pid values when diffing. r=njn 2014-08-22 15:45:44 -07:00
Nicholas Nethercote
194a53e7c2 Bug 1054318 - Replace multiple addresses in paths when diffing memory reports. r=erahm.
--HG--
extra : rebase_source : 317c4b5c371ff084673d4ada81143b5a8955151a
2014-08-19 18:28:42 -07:00
Nicholas Nethercote
ac2d623ffd No bug. Remove two "njn: ..." comments I accidentally left in. r=me.
DONTBUILD because the patches contains only trivial comment changes.

--HG--
extra : rebase_source : ecc0bd10c43c6d4223f5301ff11cbd2a56c9912b
2014-08-06 16:19:55 -07:00
Nicholas Nethercote
f907318caa Bug 1046477 (part 1) - Separate the reporting of the main and static atoms tables. r=froydnj.
--HG--
extra : rebase_source : c60db11fc39d180e43f22e7f395eea24cd358aa3
2014-07-30 23:06:57 -07:00
Nicholas Nethercote
c189bc06ac Bug 1035570 (follow-up) - Fix a trivial tool-tip botch in about:memory. r=mccr8.
--HG--
extra : rebase_source : 8755dbb4e26b1fc68399ed8e8bd9fa2af78375aa
2014-07-28 15:42:17 -07:00
Nicholas Nethercote
c07ebda3e2 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.

--HG--
extra : rebase_source : 651246aa7a0a301f804c124f25beb0e8ed6cd67f
2014-05-29 23:46:09 -07:00
Alexandre Poirot
7ea4dd517f 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
7e20285e70 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
aaf6fb2124 Bug 1010064 - Allow memory reports to be anonymized. r=bsmedberg.
--HG--
extra : rebase_source : 5eb756b17a97e751deb0f47e909fdb35533cb23b
2014-05-20 23:06:54 -07:00
Eric Rahm
7cf012cdbb Bug 1022965 - Add test for loading memory reports that already have heap-unclassified defined. r=njn
--HG--
extra : rebase_source : a705ba428e4e487526f491ba0994adad26d1030c
2014-06-09 17:37:20 -07:00
Eric Rahm
d1d8e97f95 Bug 1022004 - Support loading memory reports that already have heap-unclassified defined. r=njn 2014-06-07 18:35:18 -07:00
Nicholas Nethercote
c6a7e959de Bug 1005489 - Implement better sub-tree sorting and significance detection in about:memory's diff mode. r=mccr8.
--HG--
extra : rebase_source : 5a157d0ed2f099550aa2b803ac4f6f172b59ba44
2014-05-28 20:37:59 -07:00
Nicholas Nethercote
d71b0cc308 Bug 1014249 - Beef up the "is DMD enabled?" and "is DMD running?" checks. r=mccr8.
--HG--
extra : rebase_source : 868ce1a1e470e45f51447f5126982aaeb51905f1
2014-05-22 19:45:14 -07:00
Nicholas Nethercote
354e7e9196 Bug 1013652 - Add a "DMD" button to about:memory when DMD is enabled. r=mccr8.
--HG--
extra : rebase_source : 368251faf2fbadad106a2d5fab3be56d455d16e9
2014-05-20 19:29:37 -07:00
Nicholas Nethercote
c17eeed597 Bug 1005442 - Strip moz-nullprincipal UUIDs when diffing memory reports. r=mccr8.
--HG--
extra : rebase_source : 83e9f2d08b1cb1672b9bef0fddcd8bd34cfa4e18
2014-05-13 18:14:29 -07:00
Jed Davis
e4ced412bb 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
dfb5f8e5be Bug 986300 - Fix a tricky corner case involving memory report diffs. r=kats.
--HG--
extra : rebase_source : 001ae6ee0e81c40a7437ccf65add3e735fada6fa
2014-03-20 19:44:23 -07:00
Gregory Szorc
afdb724edf 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.

--HG--
extra : rebase_source : 0cfdf2697d10532e5b03cd27fbaadb41f42b837c
extra : amend_source : 0119d4e4881217f105e0e4ba1dfa9c8f7295f3e9
extra : histedit_source : eb49e62c67af2005fdc08d9c9a07f56bee98d558%2C50951e960e450f9b0e48fc7e8ec369d8666a63b0
2014-02-06 13:00:20 -08:00
Wes Johnston
98314fbfff Bug 961369 - Fallback when no file picker available in about:memory. r=njn,mfinkle 2014-02-05 10:04:32 -08:00
Nicholas Nethercote
9c25748c63 Bug 903131 - Add save GC/CC logs buttons to about:memory. r=njn,mccr8.
--HG--
extra : rebase_source : 56af9b89675394b5a219f699b96c1d26c00adc38
2014-01-31 14:43:08 -08:00
Nils Maier
ec65c8410d 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
e396fc159d 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.

--HG--
extra : rebase_source : 21049b15e6bd9cf65b0805ccaccc4ba5aae93c98
extra : amend_source : 0b1ea866d725beef92d37c6f6d475369ac002e19
2013-12-10 16:18:11 +09: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
Nicholas Nethercote
17667da00b Bug 945973 (part 3) - Fix some trivial reporter/report confusions in aboutMemory.js. r=mccr8.
--HG--
extra : rebase_source : 12eec13cd507100fa29bf798372784d5d8bcfbdb
2013-12-03 20:20:15 -08:00
Nicholas Nethercote
da333f0919 Bug 945973 (part 2) - Don't complain if there aren't any "explicit" reports for a process. r=mccr8.
--HG--
extra : rebase_source : 05129260b8a3e7cfbdadcecffe4c18715254323c
2013-12-03 20:19:41 -08:00
Nicholas Nethercote
51c80b126d Bug 945973 (part 1) - Remove about:memory's is-a-sentence description check. r=mccr8.
--HG--
extra : rebase_source : bf47145a953a23b73fa1e7c441b695ffeceafbb8
2013-12-03 20:10:59 -08:00
Nicholas Nethercote
8450156576 Bug 947802 (part 2) - Replace enumerateReporters() with getReportsForThisProcess(). r=mccr8.
--HG--
extra : rebase_source : 1c70e838e3600745f69c5772a084398f78d4c477
2013-12-01 16:29:37 -08:00
Nicholas Nethercote
a14687b578 Bug 946484 - Ignore "redundant/"-prefixed memory reports. r=khuey.
--HG--
extra : rebase_source : 9ee5e9c208b37f361e0cfa0b599ced801428e93d
2013-12-04 16:21:55 -08:00
Nicholas Nethercote
85e32e4d49 Bug 927740 (part 2) - Make about:memory's "Minimize Memory Usage" button affect child processes, like the "GC" and "CC" buttons. r=khuey.
--HG--
extra : rebase_source : 555f0e6ca11caa73e33f48a941ee119181c28b74
2013-12-02 20:07:02 -08:00
Nicholas Nethercote
39004db706 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.

--HG--
extra : rebase_source : d38ab6b63e9d576773baf8e55fa4f7182c33915e
2013-11-07 16:35:30 +11:00