Skip to main content
summaryrefslogtreecommitdiffstats
blob: 99a59855b3c948a349b26110c2ef1f235ca9543e (plain) (blame)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
desc: --massif-out-file=YYYYYYYYYYYY/valgrindFiles/testByteScalingTiB/massif_%p.txt --heap=yes --heap-admin=8 --stacks=no --depth=30 --threshold=1.0 --peak-inaccuracy=1.0 --time-unit=B --detailed-freq=10 --max-snapshots=100
cmd: XXXXXXXXXXXX/alloctest/Debug/alloctest 10485760 1048576
time_unit: B
#-----------
snapshot=0
#-----------
time=0
mem_heap_B=0
mem_heap_extra_B=0
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=1
#-----------
time=62914608
mem_heap_B=62914560
mem_heap_extra_B=48
mem_stacks_B=0
heap_tree=peak
n4: 62914560 (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
 n3: 31457280 0x40069A: foo (alloctest.c:48)
  n0: 10485760 0x4005DB: main (alloctest.c:31)
  n0: 10485760 0x4005F9: main (alloctest.c:33)
  n0: 10485760 0x400617: main (alloctest.c:35)
 n0: 10485760 0x4005CD: main (alloctest.c:30)
 n0: 10485760 0x4005EB: main (alloctest.c:32)
 n0: 10485760 0x400609: main (alloctest.c:34)
#-----------
snapshot=2
#-----------
time=1957147625664
mem_heap_B=0
mem_heap_extra_B=0
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=3
#-----------
time=4990680308064
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=4
#-----------
time=6883885720464
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=5
#-----------
time=10667675103264
mem_heap_B=0
mem_heap_extra_B=0
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=6
#-----------
time=13239309705264
mem_heap_B=62914560
mem_heap_extra_B=48
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=7
#-----------
time=16747847678064
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=8
#-----------
time=18768979460064
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=9
#-----------
time=20950019204064
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=10
#-----------
time=23378523072864
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=11
#-----------
time=26283080808864
mem_heap_B=0
mem_heap_extra_B=0
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=12
#-----------
time=29523183120864
mem_heap_B=0
mem_heap_extra_B=0
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=13
#-----------
time=33025429632864
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=14
#-----------
time=34932790832064
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=15
#-----------
time=38075375501664
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=16
#-----------
time=40212375020064
mem_heap_B=0
mem_heap_extra_B=0
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=17
#-----------
time=42435357836064
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=18
#-----------
time=45100315773264
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=19
#-----------
time=47945628920064
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=20
#-----------
time=50864866731264
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=21
#-----------
time=54010072842864
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=22
#-----------
time=57337731317664
mem_heap_B=0
mem_heap_extra_B=0
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=23
#-----------
time=60869337980064
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=24
#-----------
time=62731610376864
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=25
#-----------
time=66407396349264
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=26
#-----------
time=68350933448064
mem_heap_B=0
mem_heap_extra_B=0
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=27
#-----------
time=70331695023264
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=28
#-----------
time=72316126617264
mem_heap_B=62914560
mem_heap_extra_B=48
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=29
#-----------
time=74300558211264
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=30
#-----------
time=76284989805264
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=31
#-----------
time=78468126702864
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=32
#-----------
time=80651263600464
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=33
#-----------
time=83036251532064
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=34
#-----------
time=85563321620064
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=35
#-----------
time=88185812196864
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=36
#-----------
time=90999143751264
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=37
#-----------
time=93860185550064
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=38
#-----------
time=96768937593264
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=39
#-----------
time=99773110125264
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=40
#-----------
time=102872703146064
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=41
#-----------
time=105892080041664
mem_heap_B=0
mem_heap_extra_B=0
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=42
#-----------
time=108960740046864
mem_heap_B=62914560
mem_heap_extra_B=48
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=43
#-----------
time=112221813894864
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=44
#-----------
time=115675301585664
mem_heap_B=0
mem_heap_extra_B=0
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=45
#-----------
time=119128789276464
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=46
#-----------
time=122582276967264
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=47
#-----------
time=126228178500864
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=48
#-----------
time=129874080034464
mem_heap_B=41943040
mem_heap_extra_B=32
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=49
#-----------
time=131837540092464
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=50
#-----------
time=131840098619856
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=51
#-----------
time=131842657147248
mem_heap_B=62914560
mem_heap_extra_B=48
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=52
#-----------
time=131845215674640
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=53
#-----------
time=131847774202032
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=54
#-----------
time=131850332729424
mem_heap_B=62914560
mem_heap_extra_B=48
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=55
#-----------
time=131852891256816
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=56
#-----------
time=131855449784208
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=57
#-----------
time=131858008311600
mem_heap_B=62914560
mem_heap_extra_B=48
mem_stacks_B=0
heap_tree=detailed
n4: 62914560 (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
 n3: 31457280 0x40069A: foo (alloctest.c:48)
  n0: 10485760 0x4005DB: main (alloctest.c:31)
  n0: 10485760 0x4005F9: main (alloctest.c:33)
  n0: 10485760 0x400617: main (alloctest.c:35)
 n0: 10485760 0x4005CD: main (alloctest.c:30)
 n0: 10485760 0x4005EB: main (alloctest.c:32)
 n0: 10485760 0x400609: main (alloctest.c:34)
#-----------
snapshot=58
#-----------
time=131860566838992
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=59
#-----------
time=131863125366384
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=60
#-----------
time=131865683893776
mem_heap_B=62914560
mem_heap_extra_B=48
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=61
#-----------
time=131868242421168
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=62
#-----------
time=131870800948560
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=63
#-----------
time=131873359475952
mem_heap_B=62914560
mem_heap_extra_B=48
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=64
#-----------
time=131875918003344
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=65
#-----------
time=131878476530736
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=66
#-----------
time=131881035058128
mem_heap_B=62914560
mem_heap_extra_B=48
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=67
#-----------
time=131883593585520
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=detailed
n3: 20971520 (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
 n2: 10485760 0x40069A: foo (alloctest.c:48)
  n0: 10485760 0x400617: main (alloctest.c:35)
  n0: 0 in 2 places, all below massif's threshold (01.00%)
 n0: 10485760 0x400609: main (alloctest.c:34)
 n0: 0 in 2 places, all below massif's threshold (01.00%)
#-----------
snapshot=68
#-----------
time=131886152112912
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=69
#-----------
time=131888710640304
mem_heap_B=62914560
mem_heap_extra_B=48
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=70
#-----------
time=131891269167696
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=71
#-----------
time=131893827695088
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=72
#-----------
time=131896386222480
mem_heap_B=62914560
mem_heap_extra_B=48
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=73
#-----------
time=131898944749872
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=74
#-----------
time=131901503277264
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=75
#-----------
time=131904061804656
mem_heap_B=62914560
mem_heap_extra_B=48
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=76
#-----------
time=131906620332048
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=77
#-----------
time=131909178859440
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=detailed
n3: 20971520 (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
 n0: 10485760 0x4005CD: main (alloctest.c:30)
 n2: 10485760 0x40069A: foo (alloctest.c:48)
  n0: 10485760 0x4005DB: main (alloctest.c:31)
  n0: 0 in 2 places, all below massif's threshold (01.00%)
 n0: 0 in 2 places, all below massif's threshold (01.00%)
#-----------
snapshot=78
#-----------
time=131911737386832
mem_heap_B=62914560
mem_heap_extra_B=48
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=79
#-----------
time=131914295914224
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=80
#-----------
time=131916854441616
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=81
#-----------
time=131919412969008
mem_heap_B=62914560
mem_heap_extra_B=48
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=82
#-----------
time=131921971496400
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=83
#-----------
time=131924530023792
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=84
#-----------
time=131927088551184
mem_heap_B=62914560
mem_heap_extra_B=48
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=85
#-----------
time=131929647078576
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=86
#-----------
time=131932205605968
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=87
#-----------
time=131934764133360
mem_heap_B=62914560
mem_heap_extra_B=48
mem_stacks_B=0
heap_tree=detailed
n4: 62914560 (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
 n3: 31457280 0x40069A: foo (alloctest.c:48)
  n0: 10485760 0x4005DB: main (alloctest.c:31)
  n0: 10485760 0x4005F9: main (alloctest.c:33)
  n0: 10485760 0x400617: main (alloctest.c:35)
 n0: 10485760 0x4005CD: main (alloctest.c:30)
 n0: 10485760 0x4005EB: main (alloctest.c:32)
 n0: 10485760 0x400609: main (alloctest.c:34)
#-----------
snapshot=88
#-----------
time=131937322660752
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty
#-----------
snapshot=89
#-----------
time=131939881188144
mem_heap_B=20971520
mem_heap_extra_B=16
mem_stacks_B=0
heap_tree=empty

Back to the top