Files
ftmemsim-valgrind/massif/tests/realloc.post.exp
Nicholas Nethercote d95559802b Changed Massif to record the 'slop' heap bytes caused by rounding asked-for
sizes up to a multiple of 8 (or whatever --alignment is).  This is combined
with the "admin" bytes, resulting in the "extra" bytes.  Added
VG_(malloc_usable_size) to the tool interface to support this.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7133
2007-11-10 04:08:08 +00:00

65 lines
3.8 KiB
Plaintext

--------------------------------------------------------------------------------
Command: ./realloc
Massif arguments: --stacks=no --heap-admin=0 --time-unit=B --threshold=0
ms_print arguments: --threshold=0 massif.out
--------------------------------------------------------------------------------
B
600^ #
| #
| #
| #
| #
| #
| #
| @ #
| @ #
| @ #
| @ #
| @ #
| @ #
| @ #
| @ #
| @ #
| @ #
| @ #
| @ #
| @ #
0 +-----------------------@-----------#----------------------------------->KB
0 1.172
Number of snapshots: 8
Detailed snapshots: [3, 6 (peak)]
--------------------------------------------------------------------------------
n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
0 0 0 0 0 0
1 400 400 400 0 0
2 400 400 400 0 0
3 400 400 400 0 0
100.00% (400B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->100.00% (400B) 0x........: main (realloc.c:8)
|
->00.00% (0B) 0x........: main (realloc.c:5)
--------------------------------------------------------------------------------
n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
4 400 400 200 200 0
5 600 600 600 0 0
6 600 600 600 0 0
100.00% (600B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->100.00% (600B) 0x........: main (realloc.c:12)
|
->00.00% (0B) 0x........: main (realloc.c:5)
|
->00.00% (0B) 0x........: main (realloc.c:8)
|
->00.00% (0B) 0x........: main (realloc.c:10)
--------------------------------------------------------------------------------
n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
7 1,200 0 0 0 0