mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-10 13:40:25 +00:00
VG_(debugLog_vprintf). Remove function VG_(percentify) and fix up its call sites (part of fixing BZ #337869. Allow the width in a format specification to be '*', i.e. the width is given as an additional function argument. The limitations for printing floating point numbers are: (1) %f is the only supported format. Width and precision can be specified. (2) Funny numbers (NaN and such) are not supported. (3) Floating point numbers need to be benign in the sense that their integral part fits into an ULong. This is good enough for our purposes. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14806
86 lines
5.4 KiB
Plaintext
86 lines
5.4 KiB
Plaintext
--------------------------------------------------------------------------------
|
|
Command: ./insig
|
|
Massif arguments: --stacks=no --time-unit=B --heap-admin=128 --massif-out-file=massif.out --threshold=0.99 --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element
|
|
ms_print arguments: massif.out
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
KB
|
|
19.23^ :
|
|
| :@::
|
|
| ::::@::
|
|
| :::@::::@::
|
|
| ::::::@::::@::
|
|
| : ::::@::::@::
|
|
| : ::::@::::@::
|
|
| : ::::@::::@::
|
|
| : ::::@::::@::
|
|
| : ::::@::::@::
|
|
| : ::::@::::@::
|
|
| : ::::@::::@::
|
|
| : ::::@::::@::
|
|
| : ::::@::::@::
|
|
| : ::::@::::@::
|
|
| : ::::@::::@::
|
|
| : ::::@::::@::
|
|
| : ::::@::::@::
|
|
| : ::::@::::@::
|
|
| : ::::@::::@::
|
|
0 +----------------------------------------------------------------------->KB
|
|
0 19.23
|
|
|
|
Number of snapshots: 24
|
|
Detailed snapshots: [9, 19]
|
|
|
|
--------------------------------------------------------------------------------
|
|
n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B)
|
|
--------------------------------------------------------------------------------
|
|
0 0 0 0 0 0
|
|
1 16,128 16,128 16,000 128 0
|
|
2 16,496 16,496 16,240 256 0
|
|
3 16,816 16,816 16,432 384 0
|
|
4 16,960 16,960 16,448 512 0
|
|
5 17,104 17,104 16,464 640 0
|
|
6 17,248 17,248 16,480 768 0
|
|
7 17,392 17,392 16,496 896 0
|
|
8 17,536 17,536 16,512 1,024 0
|
|
9 17,680 17,680 16,528 1,152 0
|
|
93.48% (16,528B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
|
|
->90.50% (16,000B) 0x........: main (insig.c:8)
|
|
|
|
|
->01.36% (240B) 0x........: main (insig.c:9)
|
|
|
|
|
->01.09% (192B) 0x........: main (insig.c:10)
|
|
|
|
|
->00.54% (96B) in 1+ places, all below ms_print's threshold (01.00%)
|
|
|
|
--------------------------------------------------------------------------------
|
|
n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B)
|
|
--------------------------------------------------------------------------------
|
|
10 17,824 17,824 16,544 1,280 0
|
|
11 17,968 17,968 16,560 1,408 0
|
|
12 18,112 18,112 16,576 1,536 0
|
|
13 18,256 18,256 16,592 1,664 0
|
|
14 18,400 18,400 16,608 1,792 0
|
|
15 18,544 18,544 16,624 1,920 0
|
|
16 18,688 18,688 16,640 2,048 0
|
|
17 18,832 18,832 16,656 2,176 0
|
|
18 18,976 18,976 16,672 2,304 0
|
|
19 19,120 19,120 16,688 2,432 0
|
|
87.28% (16,688B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
|
|
->83.68% (16,000B) 0x........: main (insig.c:8)
|
|
|
|
|
->01.34% (256B) in 16 places, all below massif's threshold (0.99%)
|
|
|
|
|
->01.26% (240B) 0x........: main (insig.c:9)
|
|
|
|
|
->01.00% (192B) 0x........: main (insig.c:10)
|
|
|
|
--------------------------------------------------------------------------------
|
|
n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B)
|
|
--------------------------------------------------------------------------------
|
|
20 19,264 19,264 16,704 2,560 0
|
|
21 19,408 19,408 16,720 2,688 0
|
|
22 19,552 19,552 16,736 2,816 0
|
|
23 19,696 19,696 16,752 2,944 0
|