Commit Graph

22 Commits

Author SHA1 Message Date
Calixte Denizet
856b1bc95f Bug 944892 - Add uintptr_t casts to fix bustage with -Werror=int-to-pointer-cast set. r=dbaron 2014-01-21 13:53:48 -05:00
Isaac Aggrey
c984edf823 Bug 794510: Part 2: Use more stdint types instead of protypes.h types; r=ehsan 2012-10-11 18:38:04 -05:00
Ehsan Akhgari
e368dc9c85 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Gervase Markham
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Mats Palmgren
318bb339f4 Output the unknown value as a number not a character. b=474800 r=dbaron 2010-04-27 18:15:02 +02:00
dbaron@dbaron.org
c3cd8006d4 The tinderbox problem was due to insufficient STARTUP_TMBUFSIZE, so re-increase the buffer size to 64K (from 16K) and comment out my debugging code. 2007-04-03 18:06:34 -07:00
dbaron@dbaron.org
049112bec5 Make previous change print to stderr. 2007-04-03 17:45:07 -07:00
dbaron@dbaron.org
970f522105 Add some debugging code to tmreader and temporarily turn it on to debug tinderbox orange. 2007-04-03 16:46:45 -07:00
gerv%gerv.net
cc323a7cc8 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-25 21:07:34 +00:00
alecf%flett.org
bee187bf13 minor warnings cleanup, make a htmlStartTable() method to consolidate some code
not part of the build
2003-06-17 23:01:46 +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
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
eb12422862 bug 113738 Cost of malloc into trace-malloc log. r=blythe, sr=brendan 2001-12-15 00:27:15 +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
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
alecf%netscape.com
01dd34e55a some changes required to get bloatblame building on windows 2001-11-15 20:29:28 +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
6bb2c26634 Revise connect_nodes to be tmgraphnode_connect, reusable via tmreader.[ch]. 2000-07-26 02:19:27 +00:00
brendan%mozilla.org
55ce126995 - 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
02c5512498 Finish factoring tmreader from bloatblame; misc. clenaups (not part of build). 2000-07-21 20:42:15 +00:00
brendan%mozilla.org
e419a66c7a First cut at reusable trace-malloc logfile reader, factored from bloatblame. 2000-07-09 08:53:46 +00:00