Files
ftmemsim-valgrind/massif/tests/custom_alloc.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

64 lines
4.1 KiB
Plaintext

--------------------------------------------------------------------------------
Command: ./custom_alloc
Massif arguments: --stacks=no --time-unit=B
ms_print arguments: massif.out
--------------------------------------------------------------------------------
B
208^ # :
| # :
| # :
| # :
| # :
| # :
| # :
| # :
| # :
| # . :
| @ # : :
| @ # : :
| @ # : :
| @ # : :
| @ # : :
| @ # : :
| @ # : :
| @ # : :
| @ # : :
| @ # : :
0 +------@----------------#----------------------------------------------->KB
0 1.242
Number of snapshots: 11
Detailed snapshots: [2, 5 (peak)]
--------------------------------------------------------------------------------
n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
0 0 0 0 0 0
1 108 108 100 8 0
2 108 108 100 8 0
92.59% (100B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->92.59% (100B) 0x........: custom_alloc (custom_alloc.c:41)
->92.59% (100B) 0x........: main (custom_alloc.c:60)
--------------------------------------------------------------------------------
n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
3 216 0 0 0 0
4 424 208 200 8 0
5 424 208 200 8 0
96.15% (200B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->96.15% (200B) 0x........: custom_alloc (custom_alloc.c:41)
->96.15% (200B) 0x........: main (custom_alloc.c:63)
|
->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
--------------------------------------------------------------------------------
n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
6 632 0 0 0 0
7 744 112 100 12 0
8 856 0 0 0 0
9 1,064 208 200 8 0
10 1,272 0 0 0 0