Граф коммитов

69 Коммитов

Автор SHA1 Сообщение Дата
brendan%mozilla.org 3efd0e519f 1. Fix jsdhash/pldhash.[ch] so that add/remove cycles for a given k do not
create a long chain of removed sentinels.  Also, when adding k to a table
    where k is not mapped, but where k hashes to a chain that includes removed
    sentinels, recycle the first removed sentinel in the chain for k's entry.
2.  Cache cx->resolving till js_DestroyContext, to avoid high JSDHashTable
    new/destroy overhead in js_LookupProperty.
3.  Add NS_TraceStack to nsTraceMalloc.[ch] and clean the .c file up a bit.
2001-09-12 06:39:31 +00:00
dbaron%fas.harvard.edu ce012c5510 Move trace-malloc readers from mozilla/xpcom/base/ to mozilla/tools/trace-malloc/. Add a --shutdown-leaks option to nsTraceMalloc to dump, to the file given as an argument to the option, information about allocations still live at shutdown. Add a new trace-malloc reader (leakstats.c) to print leak statistics. b=84831 r=jag sr=brendan 2001-09-08 18:29:24 +00:00
brendan%mozilla.org dbd7fed5b1 FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver. 2001-07-31 19:05:34 +00:00
rogc%netscape.com 894f00ff0e Updated trace-malloc tools. Updated type inferences in types.dat.
Enhanced type inference logic in TraceMalloc.pm to allow substack
matching so we can have fallback types.
b=62996,r=blizzard,sr=waterson.
2001-07-20 00:59:24 +00:00
rogc%netscape.com 723563e44f Added heuristics for speculative RTTI for gnu 2.96 compilers.
b=62996,r=blizzard,sr=waterson.
2001-07-13 22:40:04 +00:00
dr%netscape.com 96d227f332 fix for 80067 (assignment vs. equality typos). r=mkaply, mjudge, sr=jst 2001-05-11 05:36:00 +00:00
thesteve%netscape.com 3b83745796 dded a rule to recognize <nsScanner> responsibility for an allocation. r=waterson 2001-02-16 18:17:11 +00:00
waterson%netscape.com eba65d9882 Break down string and void* data. 2001-02-13 10:24:28 +00:00
waterson%netscape.com 0991df1320 Add brendan's js regexp fu. 2001-02-08 06:45:38 +00:00
waterson%netscape.com 74091d7f2d Add support for regexps. 2001-02-08 06:45:29 +00:00
mjudge%netscape.com a79e1f9316 R,SR = waterson, kin, brendan. trace_malloc work. these changes should only be iuncorporated into the build process if someone defines MOZ_TRACE_MALLOC into their build 2001-01-25 22:54:05 +00:00
mjudge%netscape.com 6a5b25f5d5 not in build. only used for trace malloc purposes. This will be reviewed once a makefile change is made 2001-01-17 21:07:42 +00:00
mjudge%netscape.com 42cee62f00 not in build. for tracemalloc purposes only. when makefile is edited to add this as compile option There will be a reviewer of these checkins as well 2001-01-17 21:06:51 +00:00
jar%netscape.com 88c88a8462 Added call-stack-based type refinement, and made other type expansion controllable from command line 2000-12-30 05:39:24 +00:00
jar%netscape.com 3717905dc7 Added --detail option to show basis for object sweeping action 2000-12-24 05:56:41 +00:00
jar%netscape.com 3622e8d233 Moving leak-soup.pl from sibling directory ../trace-malloc-tools 2000-12-22 17:46:57 +00:00
brendan%mozilla.org 63a11a7d50 Must hold tmmon around all suppress_tracing uses as well as defs (r=waterson, not part of build). 2000-12-22 01:32:39 +00:00
waterson%netscape.com e8141655e1 Dump to 'allocations.log' in current process directory instead. 2000-12-19 23:40:54 +00:00
waterson%netscape.com 89d168b0c2 Improve rules attributing data to 'PresShell'. 2000-12-18 22:22:02 +00:00
waterson%netscape.com aa5389f039 First checked in. 2000-12-15 22:41:21 +00:00
waterson%netscape.com 8c0c4a14e3 Latest type data hackery. 2000-12-15 21:59:10 +00:00
waterson%netscape.com b3c5a8190d More imagelib foo. 2000-12-13 00:42:35 +00:00
waterson%netscape.com 1c2dc1378e Add pretty print for one histogram file. 2000-12-13 00:42:29 +00:00
brendan%mozilla.org 1633b91a46 Fix realloc bookkeeping blunder (r=waterson,pnunn, NOT PART OF DEFAULT BUILD). 2000-12-12 05:48:16 +00:00
waterson%netscape.com df22989d4e Add param for specifying how many rows you want in the output. 2000-12-12 01:56:01 +00:00
waterson%netscape.com 525931f8c9 Improve imagelib heuristics. 2000-12-12 01:52:06 +00:00
waterson%netscape.com 763a8e5c72 First checked in. 2000-12-09 01:24:23 +00:00
waterson%netscape.com 67ec62600b Mmm, more rules. 2000-12-08 20:31:31 +00:00
waterson%netscape.com f7b54ed67f Bug 61571. Improve speculative RTTI heuristics by adding one more instruction to the signature for typeinfo(). r=brendan, sr=beard 2000-12-06 00:05:45 +00:00
waterson%netscape.com 42e16bdb20 More rules. 2000-11-30 08:47:52 +00:00
waterson%netscape.com 0035401c31 Don't keep around objects: let callers do that. 2000-11-30 08:08:47 +00:00
waterson%netscape.com a692ac7ac4 Oops, remove one 'bamboozler' that isn't globally exported, except in my build. 2000-11-29 21:18:03 +00:00
waterson%netscape.com e1bdb8b1aa Bug 61241. Change trace-malloc's live object output format to mimic beard's format from Boehm. r=brendan, sr=jband 2000-11-29 21:16:53 +00:00
waterson%netscape.com f5c45800dc First checked in. 2000-11-27 22:07:30 +00:00
brendan%mozilla.org 4a242ba8a6 Revamp REALLOC record for rayw's tool; add flush-log-files function (r=rayw, a=waterson, not part of build). 2000-11-22 08:05:05 +00:00
kandrot%netscape.com 619eadadb6 Initial check in of a tool to calc deltas of bloat snap shots. 2000-11-02 06:45:26 +00:00
waterson%netscape.com 7968871a5d First checked in. 2000-08-30 00:16:58 +00:00
waterson%netscape.com 094d0a293f First checked in. 2000-08-29 23:26:46 +00:00
brendan%mozilla.org 5387c4e16b Add possibly-too-verbose NS_TraceMallocDumpAllocations and its JS window-level function, for leak and bloat analysis. 2000-08-29 01:52:13 +00:00
brendan%mozilla.org 53ef9c0ba4 Add captioned timestamp events, for JS storyboarding (not part of build). 2000-08-09 02:41:58 +00:00
brendan%mozilla.org 6bb2c26634 Revise connect_nodes to be tmgraphnode_connect, reusable via tmreader.[ch]. 2000-07-26 02:19:27 +00:00
brendan%mozilla.org 55ce126995 - Remove <unistd.h> include from bloatblame, it's no longer needed and the link(2) prototype it drags in was causing warnings whenever I used a local variable named 'link'.
- Use uint32 for all quantities, and double for all differences, so that we can overflow without breaking deltas such as (busy == allocs - frees).  This doesn't help sorting, however: if one of the sort keys has overflowed past 0 just a bit, while the other is a very large unsigned number, beware.

- Separate graph link (half an edge, structurally speaking -- no per-edge stats) from graph edge, so that an edge is two links and some stats.  This avoids bloat and copying in connect_nodes (which is soon to become generic and move to tmreader.[ch]).

- Factor data structures better: we now have {allocs,frees} x {bytes,calls} x {direct, total}, declaring the second set as struct tmallcounts and the third as tmcounts.  So, for example, total number of calls to allocators would be allocs.calls.total; bytes freed directly by a graphnode (library, component, or method) would be frees.bytes.direct.

- Teach tmreader_eventloop about 'F' (TM_EVENT_FREE) events: it now updates the direct free byte and call counts for a method, its component, and its library when it reads the event.  Of course, bloatblame ignores this info, because it is concerned only with bloat (total memory allocated).

- Right-align numbers in the first (trace-malloc stats) table.
2000-07-26 00:24:08 +00:00
brendan%mozilla.org 02c5512498 Finish factoring tmreader from bloatblame; misc. clenaups (not part of build). 2000-07-21 20:42:15 +00:00
brendan%mozilla.org 0d66d403b3 Make NS_TraceMallocShutdown idempotent just in case it's called more than once (doesn't affect default builds: #ifdef NS_TRACE_MALLOC). 2000-07-11 19:10:52 +00:00
warren%netscape.com ca180c6d4d Fixed monitor destructor because NS_TraceMallocShutdown is called twice. r=dbaron 2000-07-11 07:28:14 +00:00
brendan%mozilla.org e419a66c7a First cut at reusable trace-malloc logfile reader, factored from bloatblame. 2000-07-09 08:53:46 +00:00
brendan%mozilla.org ca37059e30 Interim checkin: -u option for unified (-f and standard) output, down/next links for sorted subgraph navigation, some -j (js-mode) support. 2000-06-28 06:42:29 +00:00
brendan%mozilla.org 2eab0c4a26 Work around unsolved bug reported by rusty.lynch@intel.com. 2000-06-28 06:22:29 +00:00
brendan%mozilla.org 0cb0663247 Hoist loop invariant. 2000-06-21 18:03:34 +00:00
brendan%mozilla.org 543138903e Comment fixes. 2000-06-21 18:03:01 +00:00