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