ftmemsim-valgrind/massif/tests/new-cpp.post.exp
Nicholas Nethercote 40dce903a2 Do Massif output file name properly. Default is massif.out.%p, where %p
expands to the PID.  Updated the tests.  Still todo:  handle %q for
environment variables, and do the same for the core and
Cachegrind/Callgrind.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7190
2007-11-20 07:55:40 +00:00

59 lines
3.6 KiB
Plaintext

--------------------------------------------------------------------------------
Command: ./new-cpp
Massif arguments: --stacks=no --time-unit=B --massif-out-file=massif.out
ms_print arguments: massif.out
--------------------------------------------------------------------------------
KB
11.75^ #
| #
| #
| . #
| : #
| : #
| : #
| : : # :
| : : # :
| : : # :
| : : # :
| : : # :
| : : # :
| . : : # : .
| : : : # : :
| : : : # : :
| : : : # : :
| : : : # : : :
| : : : # : : :
| : : : # : : :
0 +-----------------------------------#----------------------------------->KB
0 23.50
Number of snapshots: 10
Detailed snapshots: [5 (peak)]
--------------------------------------------------------------------------------
n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
0 0 0 0 0 0
1 4,008 4,008 4,000 8 0
2 8,016 8,016 8,000 16 0
3 10,024 10,024 10,000 24 0
4 12,032 12,032 12,000 32 0
5 12,032 12,032 12,000 32 0
99.73% (12,000B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->33.24% (4,000B) 0x........: main (new-cpp.cpp:19)
|
->33.24% (4,000B) 0x........: main (new-cpp.cpp:20)
|
->16.62% (2,000B) 0x........: main (new-cpp.cpp:21)
|
->16.62% (2,000B) 0x........: main (new-cpp.cpp:22)
--------------------------------------------------------------------------------
n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
6 16,040 8,024 8,000 24 0
7 20,048 4,016 4,000 16 0
8 22,056 2,008 2,000 8 0
9 24,064 0 0 0 0