115 Commits

Author SHA1 Message Date
seawood%netscape.com
c046046c39 This patch:
* Changes MOZ_TRACE_MALLOC ifdefs to NS_TRACE_MALLOC ifdefs
* Links against the trace-malloc utils against libxpcom instead of just xpcomds
* Builds NSPR in debug mode on win32 if trace-malloc is enabled
* Adds a few "defined()" checks to diffbloatdump.pl so that it will work for
perl 5.6.1
* Adds a couple of checks for \r so that diffbloatdump.pl works on win32.

Bug #126915 r=bryner/dbaron a=asa


git-svn-id: svn://10.0.0.236/trunk@115364 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-26 09:26:10 +00:00
seawood%netscape.com
6166352177 Fixing win32 gmake trace-malloc bustage
git-svn-id: svn://10.0.0.236/trunk@114530 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 22:56:03 +00:00
blythe%netscape.com
d9d306a1a3 NOT part of normal build.
Fix a small performance problem intruduced yesterday.


git-svn-id: svn://10.0.0.236/trunk@112752 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 22:41:08 +00:00
blythe%netscape.com
cbc42dd680 NOT part of normal build.
Fix bug 119065
Better filtering via spacetrace footprint tool.


git-svn-id: svn://10.0.0.236/trunk@112597 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 00:58:33 +00:00
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
b085c89dc3 Adding peak memory used report r=blythe
git-svn-id: svn://10.0.0.236/trunk@111602 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-08 23:20:29 +00:00
blythe%netscape.com
3ae5e494b6 Fix bug 115191
NOT part of normal build
Correct usage of PRUint64


git-svn-id: svn://10.0.0.236/trunk@111139 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-28 22:27:20 +00:00
blythe%netscape.com
afc0954d1a NOT part of normal build.
Correctly account for heap overhead on allocations.
By default, we now correctly calculate heap impact on win32 using msvcrt.


git-svn-id: svn://10.0.0.236/trunk@111079 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-26 18:56:01 +00:00
dp%netscape.com
2b63688110 TARGET=_content for hrefs. With this we can now have the spacetrace
sidebar :-)


git-svn-id: svn://10.0.0.236/trunk@110872 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-20 06:48:50 +00:00
blythe%netscape.com
06dadb14aa Fix bug 115281, report runtime allocation stats
NOT in normal build.


git-svn-id: svn://10.0.0.236/trunk@110667 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-18 01:00:36 +00:00
dp%netscape.com
b2db34e217 bug 113738 Cost of malloc into trace-malloc log. r=blythe, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@110506 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-15 00:27:15 +00:00
dp%netscape.com
675f07e7c3 Fixing compiler warning.
git-svn-id: svn://10.0.0.236/trunk@110505 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-15 00:25:03 +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
bf73e67f74 NOT part of normal build.
Remove special cases involving reallocs of size 0 (improve it actually).
Avoid qsort problem on MSVC win32.


git-svn-id: svn://10.0.0.236/trunk@109236 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 18:44:15 +00:00
blythe%netscape.com
1f6d513fde 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.


git-svn-id: svn://10.0.0.236/trunk@109161 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 01:29:26 +00:00
blythe%netscape.com
6c232105b6 NOT part of normal build.
Allow gd graphics library to be specified for SpaceTrace.


git-svn-id: svn://10.0.0.236/trunk@109087 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 02:07:42 +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
dbaron%fas.harvard.edu
5f96f091fa Call the root 'malloc' rather than '.root' since there's no leak root detection going on here.
git-svn-id: svn://10.0.0.236/trunk@108288 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 09:00:26 +00:00
dbaron%fas.harvard.edu
d75cd553c0 Ignore the library/address part of the stack unless asked to use it.
git-svn-id: svn://10.0.0.236/trunk@108252 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:47:07 +00:00
blythe%netscape.com
6d460e3f06 NOT in normal build.
Have the tools build on windows, wether or not they work yet is another
issue.


git-svn-id: svn://10.0.0.236/trunk@108242 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:19:14 +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
alecf%netscape.com
d348a4e9ab better fixes to make bloatblame work on windows
git-svn-id: svn://10.0.0.236/trunk@108193 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 22:08:03 +00:00
alecf%netscape.com
10dba00731 some changes required to get bloatblame building on windows
git-svn-id: svn://10.0.0.236/trunk@108185 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 20:29:28 +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
dbaron%fas.harvard.edu
4c020bcc00 Oops. Backing that out.
git-svn-id: svn://10.0.0.236/trunk@108085 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 21:44:45 +00:00
dbaron%fas.harvard.edu
9677901489 Add script to diff the output of two files created by NS_TraceMallocDumpAllocations.
git-svn-id: svn://10.0.0.236/trunk@108083 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 21:42:54 +00:00
waterson%netscape.com
15276fbb6a More types. Remove JS stuff so we can account for it better.
git-svn-id: svn://10.0.0.236/trunk@107070 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 05:17:28 +00:00
waterson%netscape.com
bf277e8274 More types!
git-svn-id: svn://10.0.0.236/trunk@105951 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-22 18:25:37 +00:00
waterson%netscape.com
8241b8d2c9 Types, types! More types!
git-svn-id: svn://10.0.0.236/trunk@105907 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-22 00:07:26 +00:00
waterson%netscape.com
734c20f22b Add coverage and floating width.
git-svn-id: svn://10.0.0.236/trunk@105902 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-21 16:46:37 +00:00
waterson%netscape.com
3edd4d2cf9 Mmm, more types.
git-svn-id: svn://10.0.0.236/trunk@104999 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-10 03:32:41 +00:00
waterson%netscape.com
dead4960c4 More types!
git-svn-id: svn://10.0.0.236/trunk@104947 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-09 21:58:41 +00:00
waterson%netscape.com
51affc4cd6 Update types for code drift.
git-svn-id: svn://10.0.0.236/trunk@104918 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-09 17:11:25 +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
c3443641e4 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.


git-svn-id: svn://10.0.0.236/trunk@99622 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-20 00:59:24 +00:00