Commit Graph
69 Commits
Author SHA1 Message Date
Terrence Cole 639426bab4 Bug 1033442 - Remove non-pod realloc from MallocProvider and AllocPolicy; r=jonco 2014-08-05 14:06:35 -07:00
Terrence Cole 141bb16882 Bug 1033442 - Remove non-pod malloc from MallocProvider and AllocPolicy; r=jonco 2014-08-08 13:22:39 -07:00
Terrence Cole 845c16df98 Bug 1033442 - Remove non-pod calloc from MallocProvider and AllocPolicy; r=jonco 2014-08-05 14:06:35 -07:00
Andrew McCreight 8f96a9fb10 Bug 1004609, part 9 - Rename DMDLocationService to CodeAddressService. r=njn 2014-07-31 16:39:26 -07:00
Andrew McCreight 4c51c9513d Bug 1004609, part 7 - Move LocationService into xpcom. r=njn,froydnj 2014-07-31 16:39:25 -07:00
Andrew McCreight af9744adb4 Bug 1004609, part 5 - Templatize LocationService over the lock. r=njn 2014-07-31 16:39:25 -07:00
Andrew McCreight e927e18516 Bug 1004609, part 4 - Templatize LocationService over the string allocator. r=njn 2014-07-31 16:39:25 -07:00
Andrew McCreight 81ecccef8c Bug 1004609, part 3 - Templatize LocationService over the string interner. r=njn 2014-07-31 16:39:24 -07:00
Andrew McCreight f6e55f9513 Bug 1004609, part 2 - Templatize LocationService over the writer. r=njn 2014-07-31 16:39:24 -07:00
Andrew McCreight 1fe403e13d Bug 1004609, part 1 - Inline the W() macro in LocationService. r=njn
This will make it easier to move it later.
2014-07-31 16:39:24 -07:00
Andrew McCreight 2d27030c89 Bug 1045241 - Make memory reporting for LocationService more normal. r=njn 2014-07-31 16:39:24 -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
Nicholas Nethercote 7cf4229711 Bug 1035570 (part 2) - DMD: make output easier for machines to parse. r=erahm.
There are likely to be post-processing scripts for DMD added in the future. In
anticipation, this patch tweaks DMD's output to be a little more conducive to
machine parsing.

The basic idea is this:

- Lines beginning with '#' are comments and can be ignored, as can blank lines.

- All top level blocks consist of a string ending with '{', and then one or
  more indented lines, and then a closing '}' on its own line. Any multi-line
  things within a block are themselves enclosed in braces.

The diff for memory/replace/dmd/test-expected.dmd shows what this looks like in
practice.

It's a long way from a formal grammar or anything like that, but that would be
overkill. In this form it's quite easy to parse with simple scripts that just
do line-based regexp matching, rather than proper parsing. And it's still very
readable to humans, so I think it's a reasonable balance overall.
2014-06-05 19:06:50 -07:00
Nicholas Nethercote 1061f6e375 Bug 1035570 (part 1) - DMD: Rename TraceRecord as Record. r=erahm.
DMD used to have "stack trace records" and "stack frame records". Bug 1013011
removed the latter, and now "stack trace record" and |TraceRecord| are a bit
unwieldy. This patch changes them to "heap block record" and |Record|.
2014-06-05 18:57:02 -07:00
Nicholas Nethercote 0ad6941db7 Bug 1017911 - DMD: don't use alloca(), because it's a pain to get working on multiple platforms. r=mccr8.
DONTBUILD because DMD is NPOTB.
2014-05-29 17:04:23 -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 d2749abb60 Bug 1013011 - DMD: Remove stack frame records. r=erahm.
DONTBUILD because DMD is NPOTB.
2014-05-19 19:57:50 -07:00
Eric Rahm bc4d31ff76 Bug 1000621 - Check if DMD is enabled before dumping. r=njn. DONTBUILD 2014-04-24 12:43:11 -07:00
Eric Rahm 2f284b2b0c Bug 968956 - DMD: Acquire state lock before clearing reports. r=njn.
DONTBUILD because DMD is NPOTB.
2014-02-07 15:23:50 -08:00
Nicholas Nethercote 4a6a8e93bc Bug 950545 (part 2) - Fix assertion failures and output mismatches in the DMD test. r=iacobcatalin.
DONTBUILD because DMD is NPOTB
2013-12-18 13:58:08 -08:00
Nicholas Nethercote ca8abde672 Bug 950545 (part 1) - Fix the dump numbering in the DMD test. r=iacobcatalin. 2013-12-18 13:55:47 -08:00
Nicholas Nethercote f101ee996d Bug 948621 (part 2) - Abort DMD-enabled Windows builds unless --enable-profiling is specified. r=ehsan. 2013-12-15 13:50:39 -08:00
Nicholas Nethercote 30556d2434 Bug 948621 (part 1) - DMD: Handle arbitrary PC values in stack frames. r=iacobcatalin.
DONTBUILD because NPOTB
2013-12-15 13:47:11 -08:00
Markus Stange fbd15a9af9 Bug 945131 - Fix DMD build by using const char*. r=njn
DONTBUILD because NPOTB
2013-12-02 23:13:20 +01:00
Catalin Iacob d3ad8de04d Bug 819839 - Part 2 - Print file name and line number if available in DMD report. r=njn 2013-11-29 16:09:42 +01:00
Birunthan Mohanathas fb5799ee50 Bug 784739 - Switch from NULL to nullptr in miscellaneous directories; r=ehsan 2013-11-11 14:17:14 -05:00
Catalin Iacob f88cdc0744 Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn. 2013-06-23 14:03:39 +02:00
Nicholas Nethercote cdf2ae2384 Bug 848560 (part 1) - dmd::ClearReports() needs to check if DMD is running before doing anything to avoid crashing. r=jlebar. 2013-03-25 21:03:47 -07:00
Nicholas Nethercote 227311f516 Bug 841564 - DMD: Fix the second percentage in stack frame records. r=jlebar. DONTBUILD. 2013-02-18 17:02:13 -08:00
Nicholas Nethercote acbfc99af8 Bug 838942 - DMD: Fix assertion in the test on Windows. r=jlebar. DONTBUILD because DMD isn't built by default. 2013-02-07 11:18:52 -08:00
Nicholas Nethercote f10ff9fd8d Bug 836054 - DMD: Handle stack entries with PC of 0x0. r=jlebar. 2013-02-03 20:15:10 -08:00
Nicholas Nethercote 7aa093df6e Bug 827523 (part 3) - DMD: Add --max-frames and --max-records options. r=jlebar. 2013-01-07 18:32:38 -08:00
Nicholas Nethercote 9b8e2524c8 Bug 827523 (part 1) - DMD: Remove valloc() from the test. r=jlebar. 2013-01-07 17:59:44 -08:00
Justin Lebar 42f219049a Bug 826515 - Occasionally GC DMD stacks. r=njn 2013-01-08 11:04:19 +01:00
Nicholas Nethercote 17d30f9a25 Bug 818793 - Add a |aMaxFrames| parameter to NS_StackWalk. r=jlebar,glandium; sr=dbaron. 2012-12-20 21:31:57 -08:00
Nicholas Nethercote 52111abb47 Bug 820566 - DMD: Improve testing by using a script to filter out platform-specific stuff in the output. r=jlebar. 2013-01-06 19:18:13 -08:00
Nicholas Nethercote 73febc1c48 Bug 826183 - DMD: clear reportedness data before running memory reporters and dumping. r=jlebar. 2013-01-06 13:34:39 -08:00
Ehsan Akhgari c91848eade Bug 826779 - Get DMD to build on Windows; r=bbondy 2013-01-04 13:57:27 -05:00
Justin Lebar b90c270919 Bug 824395 - Report used stacks separately from unused stacks. r=njn 2012-12-23 21:48:03 -05:00
Nicholas Nethercote 1c8817cdaa Bug 824340 - DMD: fix a deadlock when getting stack traces. r=jlebar. 2012-12-23 17:35:56 -08:00
Nicholas Nethercote ba3b6798ca Bug 824390 - DMD: Don't use PTHREAD_MUTEX_INITIALIZER for non-static mutexes. r=jlebar. 2012-12-23 17:35:23 -08:00
Nicholas Nethercote 90cb838cda Bug 822148 (part 9) - DMD: rename "groups" as "records". r=jlebar. 2012-12-17 21:54:08 -08:00
Nicholas Nethercote 6ff3b1fd9d Bug 822148 (part 8) - DMD: remove a friend declaration. r=jlebar. 2012-12-19 19:48:43 -08:00
Nicholas Nethercote d8b5fe684a Bug 822148 (part 7) - DMD: use Percent() in a couple of appropriate places. r=jlebar. 2012-12-19 19:41:57 -08:00
Nicholas Nethercote 6ab4b04993 Bug 822148 (part 6) - DMD: print block counts in the summary. r=jlebar. 2012-12-18 19:08:07 -08:00
Nicholas Nethercote 2c799c9041 Bug 822148 (part 5) - DMD: avoid empty library names in stacks. r=jlebar. 2012-12-17 21:55:12 -08:00
Nicholas Nethercote f62ae60c7b Bug 822148 (part 4) - DMD: Capitalize class Thread's method names. r=jlebar. 2012-12-17 19:59:29 -08:00
Nicholas Nethercote f24a89ffa6 Bug 822148 (part 3) - DMD: Rename |LiveBlock| as |Block|. r=jlebar. 2012-12-17 19:56:51 -08:00
Nicholas Nethercote ad42918a65 Bug 822148 (part 2) - DMD: Treat twice-reported blocks more like other blocks. r=jlebar. 2012-12-17 19:40:07 -08:00
Nicholas Nethercote 8ed94a648e Bug 822148 (part 1) - DMD: remove reporter names from output because they're redundant. r=jlebar. 2012-12-16 16:56:04 -08:00