Commit Graph

284 Commits

Author SHA1 Message Date
Shu-yu Guo
37989840cd Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
J. Ryan Stinnett
f20d661353 Bug 1203786 - test_memoryReporters.xul should ignore namespaces. r=njn 2015-09-10 19:04:04 -05:00
Nicholas Nethercote
9b98345644 Bug 1191670 - Tweak comments in some memory reporter tests. r=erahm.
DONTBUILD because comment-only changes.
2015-08-06 19:07:50 -07:00
Geoff Brown
e7ae18404c Bug 1026290 - Update mochitest-chrome manifests for android; r=jgriffin 2015-07-10 14:41:59 -06:00
Jed Davis
92f69b3201 Bug 1154053 - Limit concurrency of e10s memory reporting. r=erahm
This changes the way nsMemoryReporterManger handles child processes;
instead of using an observer message and trying to keep a count of child
processes expected to answer, it directly iterates a copy of the list
of content processes and explicitly handles children which exit before
their reports start.

Note that GC/CC logs still run at full concurrency, and that no child
reports start until the parent is finished (see bug 1151597) regardless
of concurrency limit.
2015-05-06 20:51:00 +02:00
Phil Ringnalda
0f32185be8 Back out e05936099653 (bug 1154053) on suspicion of causing the hellish frequency of Android 2.3 robocop-2 crashes that resulted in this CLOSED TREE, a=bustage 2015-05-07 22:41:26 -07:00
Jed Davis
5b7451a823 Bug 1154053 - Limit concurrency of e10s memory reporting. r=erahm
This changes the way nsMemoryReporterManger handles child processes;
instead of using an observer message and trying to keep a count of child
processes expected to answer, it directly iterates a copy of the list
of content processes and explicitly handles children which exit before
their reports start.

Note that GC/CC logs still run at full concurrency, and that no child
reports start until the parent is finished (see bug 1151597) regardless
of concurrency limit.
2015-05-06 20:51:00 +02:00
Eric Rahm
4b7881d56d Bug 1142174 - Normalize omni.ja! paths when diffing about:memory reports. r=njn
Paths of the form:
  'jar:file:///tmp/tmp2DqEYgBuildGetter_firefox/firefox/omni.ja!/components/Webapps.js'
are now normalized to:
   'jar:file:///.../omni.ja!/components/Webapps.js'
when diffing about:memory reports. This is particularly useful when checking
for regressions across builds which will often have different install paths.
2015-04-30 18:24:17 -07:00
ziyunfei
649e7033e4 Bug 1102219 - Part 4: Replace String.prototype.contains with String.prototype.includes in chrome code. r=till 2015-04-30 00:32:05 +09:00
Nicholas Nethercote
e6e3bebf47 Bug 1145007 (part 2) - Add a "resident-peak" distinguished amount and memory reporter on Unix. r=erahm. 2015-03-19 15:16:37 -07:00
Nicholas Nethercote
e38cae6250 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.
2015-03-18 20:45:56 -07:00
Sebastian Hengst
e35e29ccdb 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
c4f9588ed3 Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Jon Coppeard
dae47c397d Bug 1134255 - Add breakdown of allocated and unused GC things by kind in memory reports r=njn 2015-02-19 11:56:00 +00:00
Christoph Kerschbaumer
2bb13c0b9b 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
1cc3287861 Bug 1110982 - Disabled tests for oth chunk and leaks (run-by-dir). r=RyanVM 2014-12-27 00:44:52 +05:30
Nicholas Nethercote
a949c58762 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.)
2015-02-02 16:53:49 -08:00
Nicholas Nethercote
3e5c3d608a 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.
2015-02-02 16:44:48 -08:00
Ehsan Akhgari
68ba61db78 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
02baeee702 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
30237958f6 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
d0956e1ab7 bug 1096718 - - display time measured spent in each compartment r=billm,mossop 2015-01-13 17:38:05 -08:00
Nicholas Nethercote
dceb4f2bc9 Bug 1014341 (part 1) - Remove trace-malloc. r=dbaron,glandium. 2015-01-07 16:13:03 -08:00
Nicholas Nethercote
fbd281e6c5 Bug 1070251 - Anonymize non-chrome inProcessTabChildGlobal URLs in memory reports when necessary. r=khuey. 2014-09-24 19:08:20 -07:00
Nicholas Nethercote
6c95527a5b Bug 1059612 - Filter diff-breaking info from memory reports in a more rigorous fashion. r=erahm. 2014-09-17 21:22:57 -07:00
Shu-yu Guo
6cfc2eb110 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
dc97ea3835 Bug 1061960 - In about:memory, support the loading of memory reports embedded in crash dumps. r=mccr8. 2014-09-04 16:04:54 -07:00
Nicholas Nethercote
c1bf6c97b2 Bug 1061066 - Make DMD work properly with e10s. r=mccr8. 2014-09-01 17:22:53 -07:00
Josh Aas
4e35cfb6da 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
63c755e921 Bug 1056954 - Normalize pid values when diffing. r=njn 2014-08-22 15:45:44 -07:00
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