1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
--------------------------------------------------------------------------------
Command: ./thresholds
Massif arguments: --stacks=no --time-unit=B --heap-admin=0 --threshold=0 --massif-out-file=massif.out --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 --threshold=10
--------------------------------------------------------------------------------
KB
78.12^ @
| @
| @
| @
| @
| ::::::::::::::@
| ::::::: @
| ::::: : @
| ::::::: ::: : @
| : : ::: : @
| : : ::: : @
| : : ::: : @
| : : ::: : @
| : : ::: : @
| : : ::: : @
| : : ::: : @
| : : ::: : @
| : : ::: : @
| : : ::: : @
| : : ::: : @
0 +----------------------------------------------------------------------->KB
0 78.12
Number of snapshots: 10
Detailed snapshots: [9]
--------------------------------------------------------------------------------
n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
0 0 0 0 0 0
1 48,000 48,000 48,000 0 0
2 55,200 55,200 55,200 0 0
3 57,600 57,600 57,600 0 0
4 58,400 58,400 58,400 0 0
5 59,200 59,200 59,200 0 0
6 59,600 59,600 59,600 0 0
7 63,600 63,600 63,600 0 0
8 79,600 79,600 79,600 0 0
9 80,000 80,000 80,000 0 0
100.00% (80,000B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->66.50% (53,200B) 0x........: my_malloc1 (thresholds.c:23)
| ->60.00% (48,000B) 0x........: a7550 (thresholds.c:38)
| | ->60.00% (48,000B) 0x........: main (thresholds.c:52)
| |
| ->06.50% (5,200B) in 3+ places, all below ms_print's threshold (10.00%)
|
->20.00% (16,000B) 0x........: main (thresholds.c:55)
|
->13.00% (10,400B) 0x........: my_malloc2 (thresholds.c:28)
| ->13.00% (10,400B) in 3+ places, all below ms_print's threshold (10.00%)
|
->00.50% (400B) in 1+ places, all below ms_print's threshold (10.00%)
|