Commit Graph

129 Commits

Author SHA1 Message Date
dbaron%dbaron.org
42a4e1b141 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
db513ba375 Fix build with MSYS. b=352206 Patch from Sylvain Pasche <sylvain.pasche@gmail.com>. r=dbaron 2006-09-11 21:30:58 +00:00
dbaron%dbaron.org
fc5383282f Partial 64-bit and x86_64 porting. b=331743 r=brendan 2006-03-27 07:29:32 +00:00
dbaron%dbaron.org
1648e0ad3d Revert old fix for 230336 in favor of better fix elsewhere. 2006-03-25 04:16:00 +00:00
dbaron%dbaron.org
d8b42e96fc Fix C++ comments that I introduced. 2006-03-24 08:32:09 +00:00
dbaron%dbaron.org
ace148d610 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
4a829838f0 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
ee7cc9c534 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
dbaron%dbaron.org
cde791bfac Remove CRs (whitespace change only). 2005-09-21 20:32:30 +00:00
gandalf%firefox.pl
31f502d4a6 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
2419559d71 For functions in the binary, output something compatible with addr2line. b=230336 r=brendan 2005-03-30 01:54:54 +00:00
bsmedberg%covad.net
79241940e8 Bug 273876 - libxul step 2 (everything through widget, except spidermonkey) r=darin; again, this should not affect non-xulrunner trees. 2004-12-09 19:28:35 +00:00
gerv%gerv.net
cc323a7cc8 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-25 21:07:34 +00:00
cls%seawood.org
486c2570e0 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
901708e8e3 Get my NS_TrackAllocation patch in before cls moves files. 2004-02-11 04:15:17 +00:00
cls%seawood.org
1a0e9742d7 Backing out previous changes.
Missed a cplus_demangle call and it turns out that all of trace-malloc needs to be tweaked to use c++ instead of C.
Bug #232763
2004-02-10 18:55:04 +00:00
cls%seawood.org
1aae076768 Remove unneeded -liberty references.
Bug #232763
2004-02-10 17:58:21 +00:00
alecf%flett.org
045e10a463 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
b7de5d5648 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
6931545fdc Remove include of stdio.h from nsTraceRefcnt.h. b=227074 r=dougt sr,a=brendan 2003-12-12 23:02:12 +00:00
dbaron%dbaron.org
c58c100242 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
ae9176bd25 oops, didn't mean to check that in 2003-06-18 02:14:15 +00:00
alecf%flett.org
91b72b4179 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
39b6e7826f ugh, take two - remove PR_ASSERT, tabs, and extra ^M's 2003-06-04 20:53:57 +00:00
alecf%flett.org
b20e0b65f2 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
alecf%netscape.com
315db632c3 ignore generated files 2003-04-17 07:41:23 +00:00
dougt%netscape.com
ea89f2487c Missed the tm.def file 2003-01-16 21:26:02 +00:00
dougt%netscape.com
6508e0713e move nsTraceMalloc out of XPCOM. Factory out stackwalking code into new files. 189221 r=chak, 186585 r=blythe sr=dbaron. Most of this patch was contributed by seawood. 2003-01-15 20:40:06 +00:00
brendan%mozilla.org
c70d301f7e 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
dec943eb10 Bug 106386 rid source of misspellings
r=db48x sr=blake a=asa
2002-03-19 04:30:17 +00:00
blythe%netscape.com
00c321d9fb 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
cb3dce038a bug 113738 Cost of malloc into trace-malloc log r=blythe, sr=brendan 2001-12-15 00:24:12 +00:00
blythe%netscape.com
fbfee2b106 Fix bug 113958, win32 nsTraceRefcnt support.
r=dbaron, sr=brendan
2001-12-11 22:26:47 +00:00
blythe%netscape.com
1ef06c2bf5 Fix bug 114149, trace-malloc output platform specific
r=dp, sr=brendan
2001-12-11 22:21:50 +00:00
dp%netscape.com
583f4cf74a 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
bc26d6a0ca 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
046f20a06d 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
da13b4fc43 disabling unconditional printfs. 2001-12-02 05:39:49 +00:00
blythe%netscape.com
f7fceef68c 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
ed4ccb0a55 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
9d6f0a2650 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
c096dbbd8b Fix bug 108103, new tool SpaceTrace
SR,RS=brendan, SR=waterson, R=dbaron
2001-11-15 22:40:53 +00:00
dbaron%fas.harvard.edu
dbd3c84701 Oops, meant to remove that incorrect comment. 2001-11-15 07:44:59 +00:00
dbaron%fas.harvard.edu
1cde573592 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
gerv%gerv.net
4e12e44b2f 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
ca36b7718d reverting 99248. r=shaver|brendan@mozilla.org 2001-09-27 03:52:45 +00:00
dbaron%fas.harvard.edu
2d6d9601cd Fix build bustage. Not part of the default build. b=99248 2001-09-27 00:43:32 +00:00
dougt%netscape.com
65aec024ea 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
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
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
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
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
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
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
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
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
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
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
2eab0c4a26 Work around unsolved bug reported by rusty.lynch@intel.com. 2000-06-28 06:22:29 +00:00
brendan%mozilla.org
543138903e Comment fixes. 2000-06-21 18:03:01 +00:00
brendan%mozilla.org
155c1ab6f3 Fix skip-one-frame-too-many backtrace lossage; update TODO. 2000-06-21 17:59:30 +00:00
brendan%mozilla.org
d6b3206fde Sacred 80th column preservation, brendan-style case indentation (not part of default build). 2000-06-07 19:14:10 +00:00
waterson%netscape.com
9a0a7705c3 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
892e212b18 Push monitor down to avoid overhead when suppressing tracing (r=waterson). 2000-06-01 01:53:52 +00:00
brendan%mozilla.org
77478096cf Fix stupid logfile_list unlink bug; fix comment. 2000-05-17 06:59:21 +00:00
brendan%mozilla.org
483af1a01b Improve --trace-malloc to handle multiple logfiles. 2000-05-17 04:44:14 +00:00
brendan%mozilla.org
e6fe589729 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
36499eb772 Add TraceMalloc* native methods; allow multiple log files per site file. 2000-04-27 04:02:22 +00:00
brendan%mozilla.org
07a7b51820 Comment improvements. 2000-04-22 18:36:10 +00:00
brendan%mozilla.org
7de0f8bd21 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