Commit Graph

185 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
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
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
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
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
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
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
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
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
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
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
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
c10613ba57 Bug 929797 - Implement proper memory reporting for child processes. r=khuey. 2013-10-22 22:26:24 -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
77c15fac5f Bug 929826 - Improve about:memory's UI for the multi-process case. r=johns. 2013-10-22 22:27:58 -07:00
Nathan Froyd
9dfe111e94 Bug 924638 - use Services.jsm more in about:memory; r=njn 2013-10-08 16:28:21 -04: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
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
21f43ce7dd 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
Nicholas Nethercote
33b387460f Bug 917646 - Unbreak reading of old memory report files. r=khuey. 2013-09-17 21:55:12 -07:00
Nicholas Nethercote
e601f5f43a Bug 904321 - Add a test for memory reporters in remote processes. r=billm. 2013-09-17 13:13:38 -07:00
Nicholas Nethercote
6ab6420cb9 Bug 917489 - Fix an observer leak in about:memory. r=mccr8. 2013-09-17 13:13:25 -07:00
Nicholas Nethercote
1d074eb6ec Bug 912165 - Remove the Linux-only smaps memory reporters. r=mccr8. 2013-09-03 21:09:15 -07:00
Nicholas Nethercote
8663982263 Bug 911641 (part 2) - Prefix some reporters with "redundant/", and make about:memory ignore them. r=johns. 2013-09-03 20:06:36 -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
Justin Lebar
0410d83a7d Bug 898558 - Rework the jemalloc heap memory reporters. r=njn
Now we have the following hierarchy

  explicit/
    heap-overhead/
      bookkeeping
      waste
      page-cache (previosuly known as dirty)

In addition, heap-committed-unused-ratio is now known as heap-overhead-ratio.
2013-07-29 09:10:53 -07:00
Nicholas Nethercote
55a6d6a0f4 Bug 857382 (part 3) - Add ability to diff two files to about:memory. r=kats. 2013-04-21 15:36:07 -07:00
Nicholas Nethercote
1ff58e2db3 Bug 857382 (part 1) - Correctly handle memory report files that have no measurements in the "explicit" or "other" sections. r=kats. 2013-04-21 13:48:01 -07:00