49 Commits

Author SHA1 Message Date
blythe%netscape.com
552180e203 Fix Bug 115189
Trace-Malloc records line number information on platforms which have it.
r=dp sr=alecf


git-svn-id: svn://10.0.0.236/trunk@111713 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 19:03:01 +00:00
dp%netscape.com
51a42e0f6f bug 113738 Cost of malloc into trace-malloc log r=blythe, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@110504 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-15 00:24:12 +00:00
blythe%netscape.com
aee7b180fa Fix bug 113958, win32 nsTraceRefcnt support.
r=dbaron, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@110301 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-11 22:26:47 +00:00
blythe%netscape.com
29a382dcb9 Fix bug 114149, trace-malloc output platform specific
r=dp, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@110297 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-11 22:21:50 +00:00
dp%netscape.com
0b3f2b23ac bug 113833 Disabling trace-malloc if required dlls are not
found. (thanks jband) r=dp, sr=jband


git-svn-id: svn://10.0.0.236/trunk@110004 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 14:29:24 +00:00
dp%netscape.com
26a73785b5 bug 113833 preventing initalization of trace malloc stuff unless
--trace-malloc command line is given. sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@109983 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 06:41:55 +00:00
blythe%netscape.com
00f8bb71ce 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.


git-svn-id: svn://10.0.0.236/trunk@109789 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-06 02:36:02 +00:00
dp%netscape.com
a4490c1e80 disabling unconditional printfs.
git-svn-id: svn://10.0.0.236/trunk@109480 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 05:39:49 +00:00
blythe%netscape.com
158afbdc12 Fix bug 112196
win32 symbols now work for trace-malloc
r=dbaron,sr=brendan


git-svn-id: svn://10.0.0.236/trunk@109041 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 22:54:05 +00:00
blythe%netscape.com
5b0bd4a484 Fix bug 110807, newlines on win32 trace-malloc tools
sr=brendan,r=dbaron
NOT in normal build


git-svn-id: svn://10.0.0.236/trunk@108916 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 21:10:45 +00:00
dbaron%fas.harvard.edu
1ced18945d 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.
git-svn-id: svn://10.0.0.236/trunk@108641 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 23:32:17 +00:00
blythe%netscape.com
44e5d93d15 Fix bug 108103, new tool SpaceTrace
SR,RS=brendan, SR=waterson, R=dbaron


git-svn-id: svn://10.0.0.236/trunk@108196 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 22:40:53 +00:00
dbaron%fas.harvard.edu
f11ce5ca4c Oops, meant to remove that incorrect comment.
git-svn-id: svn://10.0.0.236/trunk@108162 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 07:44:59 +00:00
dbaron%fas.harvard.edu
c4d6c73aeb New, more portable (i.e., works for me, unlike the old code) Linux nsGetTypeName using dladdr. r=jag sr=waterson b=109829
git-svn-id: svn://10.0.0.236/trunk@108161 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 07:44:26 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
dougt%netscape.com
3ae73a07eb reverting 99248. r=shaver|brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@103921 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-27 03:52:45 +00:00
dbaron%fas.harvard.edu
830d253373 Fix build bustage. Not part of the default build. b=99248
git-svn-id: svn://10.0.0.236/trunk@103905 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-27 00:43:32 +00:00
dougt%netscape.com
15aec61064 uses strtok_r if avaliable. r=doug/cls, sr=rpotts, patch by drepper@cygnus.com. bug 99248
git-svn-id: svn://10.0.0.236/trunk@103764 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 23:31:27 +00:00
brendan%mozilla.org
9457b2de04 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.


git-svn-id: svn://10.0.0.236/trunk@102796 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-12 06:39:31 +00:00
dbaron%fas.harvard.edu
0998d9523b 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
git-svn-id: svn://10.0.0.236/trunk@102590 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 18:29:24 +00:00
brendan%mozilla.org
f5bc62edea FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@100030 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-31 19:05:34 +00:00
rogc%netscape.com
93534daba2 Added heuristics for speculative RTTI for gnu 2.96 compilers.
b=62996,r=blizzard,sr=waterson.


git-svn-id: svn://10.0.0.236/trunk@99226 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-13 22:40:04 +00:00
dr%netscape.com
ce76fb13c3 fix for 80067 (assignment vs. equality typos). r=mkaply, mjudge, sr=jst
git-svn-id: svn://10.0.0.236/trunk@94585 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-11 05:36:00 +00:00
mjudge%netscape.com
9e59d3ceb3 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
git-svn-id: svn://10.0.0.236/trunk@85527 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-25 22:54:05 +00:00
mjudge%netscape.com
74a4aa0952 not in build. only used for trace malloc purposes. This will be reviewed once a makefile change is made
git-svn-id: svn://10.0.0.236/trunk@85046 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-17 21:07:42 +00:00
mjudge%netscape.com
ba0ab16e42 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
git-svn-id: svn://10.0.0.236/trunk@85045 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-17 21:06:51 +00:00
brendan%mozilla.org
ab1ee3d23b Must hold tmmon around all suppress_tracing uses as well as defs (r=waterson, not part of build).
git-svn-id: svn://10.0.0.236/trunk@83972 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-22 01:32:39 +00:00
brendan%mozilla.org
a2555ca0ab Fix realloc bookkeeping blunder (r=waterson,pnunn, NOT PART OF DEFAULT BUILD).
git-svn-id: svn://10.0.0.236/trunk@83529 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-12 05:48:16 +00:00
waterson%netscape.com
93ab5c3017 Bug 61571. Improve speculative RTTI heuristics by adding one more instruction to the signature for typeinfo(). r=brendan, sr=beard
git-svn-id: svn://10.0.0.236/trunk@83293 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-06 00:05:45 +00:00
waterson%netscape.com
095508a120 Oops, remove one 'bamboozler' that isn't globally exported, except in my build.
git-svn-id: svn://10.0.0.236/trunk@83060 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-29 21:18:03 +00:00
waterson%netscape.com
a27c8695cc Bug 61241. Change trace-malloc's live object output format to mimic beard's format from Boehm. r=brendan, sr=jband
git-svn-id: svn://10.0.0.236/trunk@83059 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-29 21:16:53 +00:00
brendan%mozilla.org
6a865d1089 Revamp REALLOC record for rayw's tool; add flush-log-files function (r=rayw, a=waterson, not part of build).
git-svn-id: svn://10.0.0.236/trunk@82854 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-22 08:05:05 +00:00
brendan%mozilla.org
c7bf3b3515 Add possibly-too-verbose NS_TraceMallocDumpAllocations and its JS window-level function, for leak and bloat analysis.
git-svn-id: svn://10.0.0.236/trunk@77437 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-29 01:52:13 +00:00
brendan%mozilla.org
3dfa5856af Add captioned timestamp events, for JS storyboarding (not part of build).
git-svn-id: svn://10.0.0.236/trunk@75850 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 02:41:58 +00:00
brendan%mozilla.org
a85c8874b5 Finish factoring tmreader from bloatblame; misc. clenaups (not part of build).
git-svn-id: svn://10.0.0.236/trunk@74595 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 20:42:15 +00:00
brendan%mozilla.org
20112d6fb4 Make NS_TraceMallocShutdown idempotent just in case it's called more than once (doesn't affect default builds: #ifdef NS_TRACE_MALLOC).
git-svn-id: svn://10.0.0.236/trunk@74010 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 19:10:52 +00:00
warren%netscape.com
5bdd73acae Fixed monitor destructor because NS_TraceMallocShutdown is called twice. r=dbaron
git-svn-id: svn://10.0.0.236/trunk@73996 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 07:28:14 +00:00
brendan%mozilla.org
b2b5554261 Work around unsolved bug reported by rusty.lynch@intel.com.
git-svn-id: svn://10.0.0.236/trunk@73391 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 06:22:29 +00:00
brendan%mozilla.org
fd75093332 Comment fixes.
git-svn-id: svn://10.0.0.236/trunk@72779 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 18:03:01 +00:00
brendan%mozilla.org
3d43822a6a Fix skip-one-frame-too-many backtrace lossage; update TODO.
git-svn-id: svn://10.0.0.236/trunk@72776 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 17:59:30 +00:00
brendan%mozilla.org
1014164f2d Sacred 80th column preservation, brendan-style case indentation (not part of default build).
git-svn-id: svn://10.0.0.236/trunk@71722 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-07 19:14:10 +00:00
waterson%netscape.com
5cc4533d98 Add NS_TraceMallocStartupArgs() so it's easier to factor between apprunner and other apps. Like viewer. r=brendan
git-svn-id: svn://10.0.0.236/trunk@71227 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 02:09:25 +00:00
brendan%mozilla.org
41bd9bd59f Push monitor down to avoid overhead when suppressing tracing (r=waterson).
git-svn-id: svn://10.0.0.236/trunk@71223 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 01:53:52 +00:00
brendan%mozilla.org
6725db8971 Fix stupid logfile_list unlink bug; fix comment.
git-svn-id: svn://10.0.0.236/trunk@70368 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 06:59:21 +00:00
brendan%mozilla.org
41c29ad8e2 Improve --trace-malloc to handle multiple logfiles.
git-svn-id: svn://10.0.0.236/trunk@70278 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 04:44:14 +00:00
brendan%mozilla.org
72282ad97a Fix site logfile flushing on startup; #if 0 doomed libbfd-based version of dladdr.
git-svn-id: svn://10.0.0.236/trunk@68025 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-03 03:07:20 +00:00
brendan%mozilla.org
ab1fe68877 Add TraceMalloc* native methods; allow multiple log files per site file.
git-svn-id: svn://10.0.0.236/trunk@67370 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 04:02:22 +00:00
brendan%mozilla.org
01a44c7e01 Comment improvements.
git-svn-id: svn://10.0.0.236/trunk@66865 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 18:36:10 +00:00
brendan%mozilla.org
a52af9e334 Add nsTraceMalloc.[ch] and bloatblame.c, not part of build (setenv NS_TRACE_MALLOC to enable here and in xpfe/bootstrap).
git-svn-id: svn://10.0.0.236/trunk@66523 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 04:55:26 +00:00