blythe%netscape.com
c180764cf8
Fix bug 113958, win32 nsTraceRefcnt support.
...
r=dbaron, sr=brendan
2001-12-11 22:26:47 +00:00
blythe%netscape.com
6053050030
Fix bug 114149, trace-malloc output platform specific
...
r=dp, sr=brendan
2001-12-11 22:21:50 +00:00
dp%netscape.com
ba0136d403
bug 113833 Disabling trace-malloc if required dlls are not
...
found. (thanks jband) r=dp, sr=jband
2001-12-07 14:29:24 +00:00
dp%netscape.com
7316b88c24
bug 113833 preventing initalization of trace malloc stuff unless
...
--trace-malloc command line is given. sr=dveditz
2001-12-07 06:41:55 +00:00
blythe%netscape.com
51e311e86f
Bug 112953, non debug trace-malloc on win32.
...
r=dp,sr=brendan
NOT part of normal build.
Change hinges on another change to nsprpub/gmakefile.win that should land
by those in charge of that module shortly.
2001-12-06 02:36:02 +00:00
dp%netscape.com
3a21f36867
disabling unconditional printfs.
2001-12-02 05:39:49 +00:00
blythe%netscape.com
20e0ab9a79
NOT part of normal build.
...
Remove special cases involving reallocs of size 0 (improve it actually).
Avoid qsort problem on MSVC win32.
2001-11-29 18:44:15 +00:00
blythe%netscape.com
f855234ace
NOT part of normal build.
...
Get spacetrace to report data in seconds instead of confusing interval.
Move weight to far most colunm, as a product.
Unhexcape strings to that C++ classes/member can be targeted.
Add the align by option, to report real heap impact.
2001-11-29 01:29:26 +00:00
blythe%netscape.com
94329a0226
NOT part of normal build.
...
Allow gd graphics library to be specified for SpaceTrace.
2001-11-28 02:07:42 +00:00
blythe%netscape.com
e916dcd71f
Fix bug 112196
...
win32 symbols now work for trace-malloc
r=dbaron,sr=brendan
2001-11-27 22:54:05 +00:00
blythe%netscape.com
4d6ff15219
Fix bug 110807, newlines on win32 trace-malloc tools
...
sr=brendan,r=dbaron
NOT in normal build
2001-11-26 21:10:45 +00:00
dbaron%fas.harvard.edu
9872d11fea
Allow nsTraceMalloc to build even when cplus_demangle isn't available (should fix bustage on Brad's tinderbox). Also use NS_PTR_TO_INT32 per Brendan's review comments on bug 106352.
2001-11-20 23:32:17 +00:00
dbaron%fas.harvard.edu
a00d28a56f
Call the root 'malloc' rather than '.root' since there's no leak root detection going on here.
2001-11-16 09:00:26 +00:00
dbaron%fas.harvard.edu
36d5421360
Ignore the library/address part of the stack unless asked to use it.
2001-11-16 02:47:07 +00:00
blythe%netscape.com
02b77d697e
NOT in normal build.
...
Have the tools build on windows, wether or not they work yet is another
issue.
2001-11-16 02:19:14 +00:00
blythe%netscape.com
693a406cb1
Fix bug 108103, new tool SpaceTrace
...
SR,RS=brendan, SR=waterson, R=dbaron
2001-11-15 22:40:53 +00:00
alecf%netscape.com
32e65130fd
better fixes to make bloatblame work on windows
2001-11-15 22:08:03 +00:00
alecf%netscape.com
71f3b85865
some changes required to get bloatblame building on windows
2001-11-15 20:29:28 +00:00
dbaron%fas.harvard.edu
f82e4f24f8
Oops, meant to remove that incorrect comment.
2001-11-15 07:44:59 +00:00
dbaron%fas.harvard.edu
5e93155c7e
New, more portable (i.e., works for me, unlike the old code) Linux nsGetTypeName using dladdr. r=jag sr=waterson b=109829
2001-11-15 07:44:26 +00:00
dbaron%fas.harvard.edu
80411d645f
Oops. Backing that out.
2001-11-14 21:44:45 +00:00
dbaron%fas.harvard.edu
749d0950a0
Add script to diff the output of two files created by NS_TraceMallocDumpAllocations.
2001-11-14 21:42:54 +00:00
waterson%netscape.com
f5af6a6d9e
More types. Remove JS stuff so we can account for it better.
2001-11-02 05:17:28 +00:00
waterson%netscape.com
ffd047defa
More types!
2001-10-22 18:25:37 +00:00
waterson%netscape.com
47090066c3
Types, types! More types!
2001-10-22 00:07:26 +00:00
waterson%netscape.com
6c85a5b141
Add coverage and floating width.
2001-10-21 16:46:37 +00:00
waterson%netscape.com
9689115dcc
Mmm, more types.
2001-10-10 03:32:41 +00:00
waterson%netscape.com
bed3411465
More types!
2001-10-09 21:58:41 +00:00
waterson%netscape.com
98320cf036
Update types for code drift.
2001-10-09 17:11:25 +00:00
gerv%gerv.net
f385eb981a
Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
2001-09-28 20:14:13 +00:00
dougt%netscape.com
5935143361
reverting 99248. r=shaver|brendan@mozilla.org
2001-09-27 03:52:45 +00:00
dbaron%fas.harvard.edu
3316d8ff52
Fix build bustage. Not part of the default build. b=99248
2001-09-27 00:43:32 +00:00
dougt%netscape.com
d367501b1d
uses strtok_r if avaliable. r=doug/cls, sr=rpotts, patch by drepper@cygnus.com. bug 99248
2001-09-25 23:31:27 +00:00
brendan%mozilla.org
567e35c2fc
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
03b8e91855
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
8c7c819206
FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver.
2001-07-31 19:05:34 +00:00
rogc%netscape.com
4ea7fa96e0
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
ce47970433
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
da269460c0
fix for 80067 (assignment vs. equality typos). r=mkaply, mjudge, sr=jst
2001-05-11 05:36:00 +00:00
thesteve%netscape.com
34b78eabbd
dded a rule to recognize <nsScanner> responsibility for an allocation. r=waterson
2001-02-16 18:17:11 +00:00
waterson%netscape.com
cc68304a31
Break down string and void* data.
2001-02-13 10:24:28 +00:00
waterson%netscape.com
d9a3237984
Add brendan's js regexp fu.
2001-02-08 06:45:38 +00:00
waterson%netscape.com
d73182c49c
Add support for regexps.
2001-02-08 06:45:29 +00:00
mjudge%netscape.com
e5dbae6f52
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
9fdc083176
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
3e21ae3574
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
1d6f70bd7e
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
dd284f6e1b
Added --detail option to show basis for object sweeping action
2000-12-24 05:56:41 +00:00
jar%netscape.com
a912b6a692
Moving leak-soup.pl from sibling directory ../trace-malloc-tools
2000-12-22 17:46:57 +00:00
brendan%mozilla.org
efc9a81994
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
b114bb5582
Dump to 'allocations.log' in current process directory instead.
2000-12-19 23:40:54 +00:00
waterson%netscape.com
2fed42dfaf
Improve rules attributing data to 'PresShell'.
2000-12-18 22:22:02 +00:00
waterson%netscape.com
4cc5115178
First checked in.
2000-12-15 22:41:21 +00:00
waterson%netscape.com
b6ef431c5a
Latest type data hackery.
2000-12-15 21:59:10 +00:00
waterson%netscape.com
682f550a2a
More imagelib foo.
2000-12-13 00:42:35 +00:00
waterson%netscape.com
93b11ee0da
Add pretty print for one histogram file.
2000-12-13 00:42:29 +00:00
brendan%mozilla.org
3edfe573ec
Fix realloc bookkeeping blunder (r=waterson,pnunn, NOT PART OF DEFAULT BUILD).
2000-12-12 05:48:16 +00:00
waterson%netscape.com
1720ccc283
Add param for specifying how many rows you want in the output.
2000-12-12 01:56:01 +00:00
waterson%netscape.com
d479d8d6c5
Improve imagelib heuristics.
2000-12-12 01:52:06 +00:00
waterson%netscape.com
dcf7a26f01
First checked in.
2000-12-09 01:24:23 +00:00
waterson%netscape.com
dc5e02260a
Mmm, more rules.
2000-12-08 20:31:31 +00:00
waterson%netscape.com
d03997d28a
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
4ac63de89d
More rules.
2000-11-30 08:47:52 +00:00
waterson%netscape.com
c6640df117
Don't keep around objects: let callers do that.
2000-11-30 08:08:47 +00:00
waterson%netscape.com
6798cb61fa
Oops, remove one 'bamboozler' that isn't globally exported, except in my build.
2000-11-29 21:18:03 +00:00
waterson%netscape.com
1c7febd7de
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
fc331f60d3
First checked in.
2000-11-27 22:07:30 +00:00
brendan%mozilla.org
4c89c9e0d6
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
a1d63d78a0
Initial check in of a tool to calc deltas of bloat snap shots.
2000-11-02 06:45:26 +00:00
waterson%netscape.com
18be26752c
First checked in.
2000-08-30 00:16:58 +00:00
waterson%netscape.com
b207abb9f4
First checked in.
2000-08-29 23:26:46 +00:00
brendan%mozilla.org
907eccf8e7
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
e32f933de0
Add captioned timestamp events, for JS storyboarding (not part of build).
2000-08-09 02:41:58 +00:00
brendan%mozilla.org
b612891dd7
Revise connect_nodes to be tmgraphnode_connect, reusable via tmreader.[ch].
2000-07-26 02:19:27 +00:00
brendan%mozilla.org
4ad25355a3
- 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
0dcd470d51
Finish factoring tmreader from bloatblame; misc. clenaups (not part of build).
2000-07-21 20:42:15 +00:00
brendan%mozilla.org
ebfa0c8b8f
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
3aea701549
Fixed monitor destructor because NS_TraceMallocShutdown is called twice. r=dbaron
2000-07-11 07:28:14 +00:00
brendan%mozilla.org
c8c2095917
First cut at reusable trace-malloc logfile reader, factored from bloatblame.
2000-07-09 08:53:46 +00:00
brendan%mozilla.org
840af768bc
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
9096d0d767
Work around unsolved bug reported by rusty.lynch@intel.com.
2000-06-28 06:22:29 +00:00
brendan%mozilla.org
00173e1de5
Hoist loop invariant.
2000-06-21 18:03:34 +00:00
brendan%mozilla.org
f84f1f8708
Comment fixes.
2000-06-21 18:03:01 +00:00
brendan%mozilla.org
deab511971
Fix skip-one-frame-too-many backtrace lossage; update TODO.
2000-06-21 17:59:30 +00:00
brendan%mozilla.org
1d51a60338
Sacred 80th column preservation, brendan-style case indentation (not part of default build).
2000-06-07 19:14:10 +00:00
waterson%netscape.com
62529d1509
Make more portable.
2000-06-01 03:23:19 +00:00
waterson%netscape.com
5c0a94e714
Add NS_TraceMallocStartupArgs() so it's easier to factor between apprunner and other apps. Like viewer. r=brendan
2000-06-01 02:09:25 +00:00
brendan%mozilla.org
7303a72fd5
Push monitor down to avoid overhead when suppressing tracing (r=waterson).
2000-06-01 01:53:52 +00:00
brendan%mozilla.org
f909f09f84
Fix stupid logfile_list unlink bug; fix comment.
2000-05-17 06:59:21 +00:00
brendan%mozilla.org
51d9b107f3
Improve --trace-malloc to handle multiple logfiles.
2000-05-17 04:44:14 +00:00
brendan%mozilla.org
0986a87284
Fix site logfile flushing on startup; #if 0 doomed libbfd-based version of dladdr.
2000-05-03 03:07:20 +00:00
brendan%mozilla.org
bb43b6e2a2
Debloat output by consolidating onmouseovers.
2000-04-27 05:41:59 +00:00
brendan%mozilla.org
f2203f5ca6
Add TraceMalloc* native methods; allow multiple log files per site file.
2000-04-27 04:02:22 +00:00
brendan%mozilla.org
a3dc40d18b
Count allocations too; dump nodes ranked by mean allocation size.
2000-04-24 23:52:27 +00:00
shaver%mozilla.org
7d006ae565
show pointed-to symbol onmouseover, for easier scanning (r=brendan)
2000-04-23 07:13:19 +00:00
brendan%mozilla.org
e6d9eaa229
Add -f function-dump-filename option; try to keep its first table cell of reasonable width without depending on (broken in 4.x) css support.
2000-04-23 05:04:58 +00:00
brendan%mozilla.org
eebea6f933
Comment improvements.
2000-04-22 18:36:10 +00:00
brendan%mozilla.org
df0a4c7926
Stop component-wise over-totalling madness when JS=>js=>JS=>js.
2000-04-21 21:38:18 +00:00
brendan%mozilla.org
11ab539a13
Percent signs after numbers, please\!
2000-04-21 19:05:53 +00:00
brendan%mozilla.org
3d1af4c738
Optimize total computation, fix visited to be a counter.
2000-04-21 08:47:00 +00:00
brendan%mozilla.org
0f9b2de459
Fix plib-instead-of-lib->total += type; use int32 for possibly negative values.
2000-04-21 03:01:09 +00:00
brendan%mozilla.org
43bfe2d5e8
Add nsTraceMalloc.[ch] and bloatblame.c, not part of build (setenv NS_TRACE_MALLOC to enable here and in xpfe/bootstrap).
2000-04-20 04:55:26 +00:00