577a479f32
Try increasing startup buffer size to see if it fixes tinderbox orange.
2007-04-03 17:39:56 -07:00
e07b114d0a
Fix deadlock in trace-malloc by exiting monitor around call to dladdr. b=363334 r=brendan
2007-04-03 15:14:01 -07:00
dbaron@dbaron.org
9c24c1dfd6
Make trace-malloc dumps not print '(nil)' instead of an address. b=331743 (fixing regression from previous patch)
2007-02-14 07:07:51 +00:00
dbaron@dbaron.org
8dbb17b8ae
Make trace-malloc override additional memory allocation functions. b=331742
2007-02-14 07:06:35 +00:00
dbaron@dbaron.org
e71a5c8b41
Fix relocations that need to be resolved at runtime when building with default visibility as hidden and wrapping system includes. b=358558 r=bsmedberg
2006-10-29 16:11:26 +00:00
dbaron@dbaron.org
e5fa18ef75
Partial 64-bit and x86_64 porting. b=331743 r=brendan
2006-03-27 07:29:32 +00:00
dbaron@dbaron.org
644c6c0fe5
Revert old fix for 230336 in favor of better fix elsewhere.
2006-03-25 04:16:00 +00:00
dbaron@dbaron.org
23eb069efa
Fix C++ comments that I introduced.
2006-03-24 08:32:09 +00:00
dbaron@dbaron.org
9af7e4411b
Workaround brokenness of __builtin_frame_address(0) on gcc 4.1 (as shipped with FC5, at least). b=331436 r=brendan
2006-03-23 23:21:27 +00:00
dbaron@dbaron.org
0bc0709651
Use __builtin_frame_address instead of setjmp to get the frame pointer. b=323853 r=brendan
2006-03-19 01:27:17 +00:00
timeless@mozdev.org
789bc03ed9
Bug 295159 trace-malloc build crashes in glibc initialization
...
patch by sascha@schumann.cx r=timeless sr=dbaron
2005-11-13 22:39:05 +00:00
gandalf@firefox.pl
0509327e61
Bug 288823: Trace-malloc fails to compile on windows; p=bugzilla@mcsmurf.de,r+sr=dbaron,a=brendan
2005-06-11 12:52:23 +00:00
dbaron@dbaron.org
7418d65ba5
For functions in the binary, output something compatible with addr2line. b=230336 r=brendan
2005-03-30 01:54:54 +00:00
gerv@gerv.net
8e710656a3
Bug 236613: change to MPL/LGPL/GPL tri-license.
2004-04-25 21:07:34 +00:00
cls@seawood.org
a674911efb
Remove troublesome libiberty dependency by using __cxa_demangle instead of cplus_demangle. (redux)
...
Bug #232763 r=dbaron sr=brendan
2004-02-11 07:16:11 +00:00
brendan@mozilla.org
a7e39e16db
Get my NS_TrackAllocation patch in before cls moves files.
2004-02-11 04:15:17 +00:00
alecf@flett.org
feeeabb027
minor updates to spacetrace:
...
- show progress while loading the events file
- show more detailed leak summary
no review, this is a debug-only tool and I'm only changing console output
2004-01-13 16:35:45 +00:00
dbaron@dbaron.org
76c5478495
Remove pc tests in stack walking code that prevent it from working on Fedora Core 1. b=227396 r=bryner
2004-01-03 19:16:31 +00:00
dbaron@dbaron.org
130faef3d0
Be sure to call NS_TraceMallocStartup so we know (on Unix) not to waste time logging everything once we know there is no command-line argument. b=113833 r+sr=brendan
2003-06-21 00:28:05 +00:00
alecf@flett.org
0e04510f7e
oops, didn't mean to check that in
2003-06-18 02:14:15 +00:00
alecf@flett.org
b7cf4df0e9
oops, minor cleanup on the UI to distinguish between callsite and allocation listings for the "top" or "normal" callsites
...
again, not part of normal build
2003-06-18 02:13:46 +00:00
alecf@flett.org
10b37fa479
ugh, take two - remove PR_ASSERT, tabs, and extra ^M's
2003-06-04 20:53:57 +00:00
alecf@flett.org
61b71346a1
spacetrace updates (not part of build)
...
- use arenas for hashtable allocation - reduces spacetrace's mem usage tremendously for large files
- code cleanup & wrapping
- UI cleanup - headers & such
- fix nsTraceMalloc to at least support long stacks, so that we don't barf if we have trouble reading the stacks
2003-06-04 20:15:10 +00:00
brendan@mozilla.org
ed2d98c0e8
Fix up comments, overlong lines, NULL in C code, slight code simplification in log_filename (r/sr=blythe/dbaron).
2002-11-13 04:40:17 +00:00
timeless@mac.com
a3a0d9207e
Bug 106386 rid source of misspellings
...
r=db48x sr=blake a=asa
2002-03-19 04:30:17 +00:00
blythe@netscape.com
e13e7e525a
Fix Bug 115189
...
Trace-Malloc records line number information on platforms which have it.
r=dp sr=alecf
2002-01-09 19:03:01 +00:00
dp@netscape.com
97ae98bb5e
bug 113738 Cost of malloc into trace-malloc log r=blythe, sr=brendan
2001-12-15 00:24:12 +00:00
blythe@netscape.com
c7fce0d8d7
Fix bug 113958, win32 nsTraceRefcnt support.
...
r=dbaron, sr=brendan
2001-12-11 22:26:47 +00:00
blythe@netscape.com
a731bbb7d9
Fix bug 114149, trace-malloc output platform specific
...
r=dp, sr=brendan
2001-12-11 22:21:50 +00:00
dp@netscape.com
4450099865
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
8e3329bddf
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
blythe@netscape.com
e0bf586c38
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
02fdffac1b
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
320a5d7f16
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
blythe@netscape.com
5e2ead4585
Fix bug 108103, new tool SpaceTrace
...
SR,RS=brendan, SR=waterson, R=dbaron
2001-11-15 22:40:53 +00:00
dougt@netscape.com
df458b8d95
reverting 99248. r=shaver|brendan@mozilla.org
2001-09-27 03:52:45 +00:00
dbaron@fas.harvard.edu
9d71cd5360
Fix build bustage. Not part of the default build. b=99248
2001-09-27 00:43:32 +00:00
dougt@netscape.com
7a8020e510
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
09c8be75a1
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
de212948e5
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
1ba814d7b6
FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver.
2001-07-31 19:05:34 +00:00
mjudge@netscape.com
806e30676e
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
brendan@mozilla.org
67bb8463cc
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
brendan@mozilla.org
38884bc35a
Fix realloc bookkeeping blunder (r=waterson,pnunn, NOT PART OF DEFAULT BUILD).
2000-12-12 05:48:16 +00:00
waterson@netscape.com
2c4cdfe0a7
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
brendan@mozilla.org
d2dbe6efa5
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
brendan@mozilla.org
21a339d7c4
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
a78e1d5b3d
Add captioned timestamp events, for JS storyboarding (not part of build).
2000-08-09 02:41:58 +00:00
brendan@mozilla.org
db1cec1292
Finish factoring tmreader from bloatblame; misc. clenaups (not part of build).
2000-07-21 20:42:15 +00:00
brendan@mozilla.org
5dfd3478bf
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