-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathunit1.lfm
871 lines (871 loc) · 21.3 KB
/
unit1.lfm
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
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
object Form1: TForm1
Left = 347
Height = 611
Top = 107
Width = 870
ActiveControl = Button1
Caption = 'Form1'
ClientHeight = 611
ClientWidth = 870
Position = poScreenCenter
LCLVersion = '3.99.0.0'
OnCloseQuery = FormCloseQuery
OnCreate = FormCreate
object GroupBox1: TGroupBox
Left = 8
Height = 80
Top = 8
Width = 433
Caption = ' Heap properties '
ClientHeight = 63
ClientWidth = 431
TabOrder = 0
object Button1: TButton
Left = 312
Height = 25
Top = 0
Width = 107
Caption = 'Create heap'
TabOrder = 2
OnClick = Button1Click
end
object Label1: TLabel
Left = 208
Height = 16
Top = 5
Width = 84
Caption = 'Heapsize [MB]'
ParentColor = False
end
object Edit1: TEdit
Left = 208
Height = 26
Top = 24
Width = 80
TabOrder = 1
Text = 'Edit1'
end
object ComboBox1: TComboBox
Left = 8
Height = 28
Top = 24
Width = 184
ItemHeight = 0
TabOrder = 0
OnKeyPress = ComboBox1KeyPress
end
object Label2: TLabel
Left = 8
Height = 16
Top = 5
Width = 85
Caption = 'Heap Strategy'
ParentColor = False
end
object Button3: TButton
Left = 312
Height = 25
Top = 32
Width = 107
Caption = 'Free heap'
TabOrder = 3
OnClick = Button3Click
end
end
object GroupBox2: TGroupBox
Left = 8
Height = 288
Top = 88
Width = 433
Caption = ' Stress scenarios '
ClientHeight = 271
ClientWidth = 431
TabOrder = 1
object RadioButton2: TRadioButton
Left = 7
Height = 22
Top = 139
Width = 109
Caption = 'RadioButton2'
TabOrder = 4
end
object Label3: TLabel
Left = 8
Height = 16
Top = 10
Width = 42
Caption = 'Repeat'
ParentColor = False
end
object Edit2: TEdit
Left = 64
Height = 26
Top = 2
Width = 80
TabOrder = 0
Text = 'Edit2'
end
object Label4: TLabel
Left = 152
Height = 16
Top = 10
Width = 32
Caption = 'times'
ParentColor = False
end
object RadioButton1: TRadioButton
Left = 7
Height = 22
Top = 72
Width = 109
Caption = 'RadioButton1'
Checked = True
TabOrder = 2
TabStop = True
end
object GroupBox5: TGroupBox
Left = 24
Height = 80
Hint = 'Allocates Blocks with Random Bytecounts'#10'from min to max.'
Top = 32
Width = 395
Caption = ' Random blocks '
ClientHeight = 63
ClientWidth = 393
ParentShowHint = False
ShowHint = True
TabOrder = 3
object Label5: TLabel
Left = 8
Height = 16
Top = 12
Width = 67
Caption = 'Min [bytes]'
ParentColor = False
end
object Edit3: TEdit
Left = 96
Height = 26
Top = 4
Width = 80
TabOrder = 0
Text = 'Edit3'
end
object Label6: TLabel
Left = 208
Height = 16
Top = 12
Width = 70
Caption = 'Max [bytes]'
ParentColor = False
end
object Edit4: TEdit
Left = 302
Height = 26
Top = 4
Width = 80
TabOrder = 1
Text = 'Edit4'
end
object Label10: TLabel
Left = 8
Height = 16
Top = 40
Width = 75
Caption = 'Livetime min'
ParentColor = False
end
object Edit8: TEdit
Left = 96
Height = 26
Hint = 'Lifetime will be random in range [min .. max] livetime in operation cycles'
Top = 32
Width = 80
TabOrder = 2
Text = 'Edit8'
end
object Edit9: TEdit
Left = 302
Height = 26
Hint = 'Lifetime will be random in range [min .. max] livetime in operation cycles'
Top = 32
Width = 80
TabOrder = 3
Text = 'Edit9'
end
object Label11: TLabel
Left = 208
Height = 16
Top = 40
Width = 78
Caption = 'Livetime max'
ParentColor = False
end
end
object GroupBox6: TGroupBox
Left = 24
Height = 54
Hint = 'Simulation of increasing arrays via'#10#10'setlength(array, lenght(array) +1);'#10#10'Starting with length(array) = min until'#10'length(array) = max. Repeating this cycle'#10'every (max-min) iterations.'#10#10'Size is the size in bytes for each array element.'
Top = 112
Width = 395
Caption = ' increasing dynamic array''s '
ClientHeight = 37
ClientWidth = 393
ParentShowHint = False
ShowHint = True
TabOrder = 5
object Label7: TLabel
Left = 8
Height = 16
Top = 12
Width = 23
Caption = 'Min'
ParentColor = False
end
object Edit5: TEdit
Left = 40
Height = 26
Top = 4
Width = 80
TabOrder = 0
Text = 'Edit5'
end
object Label8: TLabel
Left = 128
Height = 16
Top = 12
Width = 26
Caption = 'Max'
ParentColor = False
end
object Edit6: TEdit
Left = 168
Height = 26
Top = 4
Width = 80
TabOrder = 1
Text = 'Edit6'
end
object Label9: TLabel
Left = 267
Height = 16
Top = 12
Width = 23
Caption = 'Size'
ParentColor = False
end
object Edit7: TEdit
Left = 302
Height = 26
Top = 4
Width = 80
TabOrder = 2
Text = 'Edit7'
end
end
object Label12: TLabel
Left = 213
Height = 16
Hint = '0 : create seed random'#10'>0 : Set seed to value for determenistic repeations'#10#10'The choosen seed is readable by showing randseed labels hint'
Top = 10
Width = 81
Caption = 'Random seed'
ParentColor = False
ParentShowHint = False
ShowHint = True
end
object Edit10: TEdit
Left = 312
Height = 26
Hint = '0 : create seed random'#10'>0 : Set seed to value for determenistic repeations'#10#10'The choosen seed is readable by showing randseed labels hint'
Top = 2
Width = 107
ParentShowHint = False
ShowHint = True
TabOrder = 1
Text = 'Edit10'
end
object RadioButton3: TRadioButton
Left = 7
Height = 22
Top = 209
Width = 109
Caption = 'RadioButton3'
TabOrder = 6
end
object GroupBox4: TGroupBox
Left = 24
Height = 97
Hint = 'Will allocate all listed block sizes.'
Top = 168
Width = 395
Caption = ' alternating allocations '
ClientHeight = 80
ClientWidth = 393
ParentShowHint = False
ShowHint = True
TabOrder = 7
object Label13: TLabel
Left = 8
Height = 16
Top = 56
Width = 75
Caption = 'Livetime min'
ParentColor = False
end
object Edit11: TEdit
Left = 96
Height = 26
Hint = 'Lifetime will be random in range [min .. max] livetime in operation cycles'#10'if using "commalist" option you could also give a commalist of values!'
Top = 48
Width = 80
TabOrder = 1
Text = 'Edit11'
end
object Label14: TLabel
Left = 208
Height = 16
Top = 56
Width = 78
Caption = 'Livetime max'
ParentColor = False
end
object Edit12: TEdit
Left = 302
Height = 26
Hint = 'Lifetime will be random in range [min .. max] livetime in operation cycles'#10'if using "commalist" option you could also give a commalist of values!'
Top = 48
Width = 80
TabOrder = 2
Text = 'Edit12'
end
object Label15: TLabel
Left = 8
Height = 32
Top = 4
Width = 61
Caption = 'Size '#10'commalist'
ParentColor = False
end
object Edit13: TEdit
Left = 80
Height = 26
Top = 13
Width = 302
TabOrder = 0
Text = 'Edit13'
end
end
end
object GroupBox3: TGroupBox
Left = 448
Height = 593
Top = 8
Width = 416
Anchors = [akTop, akLeft, akRight, akBottom]
Caption = ' Plots '
ClientHeight = 576
ClientWidth = 414
TabOrder = 7
object PageControl1: TPageControl
Left = 8
Height = 539
Top = 32
Width = 397
ActivePage = TabSheet4
Anchors = [akTop, akLeft, akRight, akBottom]
TabIndex = 3
TabOrder = 0
object TabSheet1: TTabSheet
Caption = 'absolute time'
ClientHeight = 505
ClientWidth = 391
object Chart1: TChart
Left = 0
Height = 505
Hint = 'Each 1000 repeations a dot is created.'#13#10#13#10'Double click to switch x-axis scaling between 1:Log 10 and 1:1'
Top = 0
Width = 391
AxisList = <
item
Marks.LabelBrush.Style = bsClear
Minors = <>
Range.UseMin = True
Title.LabelFont.Orientation = 900
Title.Visible = True
Title.Caption = 'in s'
Title.LabelBrush.Style = bsClear
end
item
Intervals.MaxLength = 75
Intervals.MinLength = 25
Intervals.Options = [aipGraphCoords, aipUseMaxLength, aipUseMinLength, aipUseNiceSteps]
Alignment = calBottom
Marks.Format = '%0.0f'
Marks.LabelBrush.Style = bsClear
Marks.Style = smsCustom
Minors = <>
Range.UseMin = True
Title.Visible = True
Title.Caption = 'Iteration'
Title.LabelBrush.Style = bsClear
Transformations = ChartAxisTransformations1
end>
Foot.Brush.Color = clBtnFace
Foot.Font.Color = clBlue
Title.Brush.Color = clBtnFace
Title.Font.Color = clBlue
Title.Text.Strings = (
'TAChart'
)
Align = alClient
ParentShowHint = False
ShowHint = True
OnDblClick = Chart1DblClick
object Chart1LineSeries1: TLineSeries
Title = 'xyz'
AxisIndexX = 1
Pointer.Brush.Color = clFuchsia
Pointer.Pen.Color = clGreen
Pointer.Visible = True
ShowPoints = True
end
end
end
object TabSheet2: TTabSheet
Caption = 'time per alloc'
ClientHeight = 505
ClientWidth = 391
object Chart2: TChart
Left = 0
Height = 505
Hint = 'each getmem and freemem is measured'
Top = 0
Width = 391
AxisList = <
item
Marks.LabelBrush.Style = bsClear
Minors = <>
Range.UseMin = True
Title.LabelFont.Orientation = 900
Title.Visible = True
Title.Caption = 'in µs'
Title.LabelBrush.Style = bsClear
end
item
Intervals.MaxLength = 75
Intervals.MinLength = 25
Alignment = calBottom
Marks.Format = '%0.0f'
Marks.LabelBrush.Style = bsClear
Marks.Style = smsCustom
Minors = <>
Range.UseMin = True
Title.Visible = True
Title.Caption = 'Iteration'
Title.LabelBrush.Style = bsClear
end>
Foot.Brush.Color = clBtnFace
Foot.Font.Color = clBlue
Title.Brush.Color = clBtnFace
Title.Font.Color = clBlue
Title.Text.Strings = (
'TAChart'
)
Align = alClient
ParentShowHint = False
ShowHint = True
end
end
object TabSheet3: TTabSheet
Caption = 'heap info'
ClientHeight = 505
ClientWidth = 391
object Chart3: TChart
Left = 0
Height = 505
Top = 0
Width = 391
AxisList = <
item
Marks.LabelBrush.Style = bsClear
Minors = <>
Range.Max = 100
Range.UseMax = True
Range.UseMin = True
Title.LabelFont.Orientation = 900
Title.Visible = True
Title.Caption = 'in % of heap size'
Title.LabelBrush.Style = bsClear
end
item
Intervals.MaxLength = 75
Intervals.MinLength = 25
Alignment = calBottom
Marks.Format = '%0.0f'
Marks.LabelBrush.Style = bsClear
Marks.Style = smsCustom
Minors = <>
Range.UseMin = True
Title.Visible = True
Title.Caption = 'Iteration'
Title.LabelBrush.Style = bsClear
end>
Foot.Brush.Color = clBtnFace
Foot.Font.Color = clBlue
Title.Brush.Color = clBtnFace
Title.Font.Color = clBlue
Title.Text.Strings = (
'TAChart'
)
Align = alClient
end
end
object TabSheet4: TTabSheet
Caption = 'alloc statistic'
ClientHeight = 505
ClientWidth = 391
object Chart4: TChart
Left = 0
Height = 505
Top = 0
Width = 391
AxisList = <
item
Marks.LabelBrush.Style = bsClear
Minors = <>
Range.UseMin = True
Title.LabelFont.Orientation = 900
Title.LabelBrush.Style = bsClear
end
item
Intervals.MaxLength = 75
Intervals.MinLength = 25
Alignment = calBottom
Marks.Format = '%0.0f'
Marks.LabelBrush.Style = bsClear
Marks.Style = smsCustom
Minors = <>
Title.Visible = True
Title.Caption = 'Block size'
Title.LabelBrush.Style = bsClear
end>
Foot.Brush.Color = clBtnFace
Foot.Font.Color = clBlue
Title.Brush.Color = clBtnFace
Title.Font.Color = clBlue
Title.Text.Strings = (
'TAChart'
)
Align = alClient
object Chart4BarSeries1: TBarSeries
BarBrush.Color = clLime
end
end
end
end
object CheckBox1: TCheckBox
Left = 333
Height = 22
Top = 4
Width = 69
Caption = 'Legend'
TabOrder = 1
OnChange = CheckBox1Change
end
object CheckBox2: TCheckBox
Left = 232
Height = 22
Top = 4
Width = 98
Caption = 'Show points'
TabOrder = 2
OnChange = CheckBox2Change
end
object Button10: TButton
Left = 168
Height = 25
Top = 0
Width = 64
Caption = 'Execute'
TabOrder = 3
OnClick = MenuItem1Click
end
object ComboBox2: TComboBox
Left = 8
Height = 26
Top = 0
Width = 157
ItemHeight = 0
ItemIndex = 0
Items.Strings = (
'Export as CSV'
'Export as bitmap'
'Clear all statistics'
)
Style = csDropDownList
TabOrder = 4
Text = 'Export as CSV'
end
end
object Button4: TButton
Left = 8
Height = 25
Top = 520
Width = 162
Caption = 'Save all settings'
TabOrder = 2
OnClick = Button4Click
end
object Button5: TButton
Left = 8
Height = 25
Top = 544
Width = 162
Caption = 'Load all settings'
TabOrder = 3
OnClick = Button5Click
end
object Button6: TButton
Left = 280
Height = 25
Top = 520
Width = 162
Caption = 'Start simulation'
Enabled = False
TabOrder = 4
OnClick = Button6Click
end
object Button7: TButton
Left = 279
Height = 25
Top = 544
Width = 162
Caption = 'Stop simulation'
Enabled = False
TabOrder = 5
OnClick = Button7Click
end
object Button8: TButton
Left = 8
Height = 25
Top = 575
Width = 433
Caption = 'Close'
TabOrder = 6
OnClick = Button8Click
end
object Button9: TButton
Left = 224
Height = 25
Top = 560
Width = 75
Caption = 'Test'
TabOrder = 8
Visible = False
OnClick = Button9Click
end
object GroupBox7: TGroupBox
Left = 8
Height = 136
Top = 376
Width = 433
Caption = ' Plot settings '
ClientHeight = 119
ClientWidth = 431
TabOrder = 9
object Label16: TLabel
Left = 7
Height = 16
Top = 5
Width = 35
Caption = 'Name'
ParentColor = False
end
object Edit14: TEdit
Left = 7
Height = 26
Top = 24
Width = 80
TabOrder = 0
Text = 'Edit14'
end
object ColorBox1: TColorBox
Left = 7
Height = 26
Top = 75
Width = 100
ItemHeight = 16
TabOrder = 1
end
object ColorBox2: TColorBox
Left = 222
Height = 26
Top = 75
Width = 100
ItemHeight = 16
TabOrder = 2
end
object ColorBox3: TColorBox
Left = 327
Height = 26
Top = 75
Width = 100
ItemHeight = 16
TabOrder = 3
end
object ColorBox4: TColorBox
Left = 114
Height = 26
Top = 20
Width = 100
ItemHeight = 16
TabOrder = 4
end
object CheckBox3: TCheckBox
Left = 7
Height = 22
Top = 56
Width = 74
Caption = 'use time'
Checked = True
State = cbChecked
TabOrder = 5
end
object CheckBox4: TCheckBox
Left = 114
Height = 22
Top = 1
Width = 104
Caption = 'use allocated'
Checked = True
State = cbChecked
TabOrder = 6
end
object CheckBox5: TCheckBox
Left = 222
Height = 22
Top = 56
Width = 94
Caption = 'use getmen'
Checked = True
State = cbChecked
TabOrder = 7
end
object CheckBox6: TCheckBox
Left = 327
Height = 22
Top = 56
Width = 101
Caption = 'use freemem'
Checked = True
State = cbChecked
TabOrder = 8
end
object CheckBox7: TCheckBox
Left = 222
Height = 22
Top = 1
Width = 96
Caption = 'use clipping'
Checked = True
State = cbChecked
TabOrder = 9
end
object ColorBox5: TColorBox
Left = 222
Height = 26
Top = 20
Width = 100
ItemHeight = 16
TabOrder = 10
end
object CheckBox8: TCheckBox
Left = 114
Height = 22
Top = 56
Width = 99
Caption = 'use barcolor'
Checked = True
State = cbChecked
TabOrder = 11
end
object ColorBox6: TColorBox
Left = 114
Height = 26
Top = 75
Width = 100
ItemHeight = 16
TabOrder = 12
end
object CheckBox9: TCheckBox
Left = 327
Height = 22
Top = 1
Width = 73
Caption = 'use sum'
Checked = True
State = cbChecked
TabOrder = 13
end
object ColorBox7: TColorBox
Left = 327
Height = 26
Top = 20
Width = 100
ItemHeight = 16
TabOrder = 14
end
end
object CheckBox10: TCheckBox
Left = 176
Height = 34
Top = 528
Width = 70
Caption = 'Refresh'#10'plots'
Checked = True
State = cbChecked
TabOrder = 10
end
object EpikTimer1: TEpikTimer
StringPrecision = 6
WantMilliseconds = True
WantDays = False
TimebaseSource = SystemTimebase
CorrelationMode = OnTimebaseSelect
Left = 624
Top = 152
end
object OpenDialog1: TOpenDialog
DefaultExt = '.hps'
Filter = 'Heap Simulations|*.hps|All|*.*'
Options = [ofFileMustExist, ofEnableSizing, ofViewDetail]
Left = 624
Top = 224
end
object SaveDialog1: TSaveDialog
DefaultExt = '.hps'
Filter = 'Heap Simulations|*.hps|All|*.*'
Left = 624
Top = 296
end
object SaveDialog2: TSaveDialog
DefaultExt = '.csv'
Filter = 'Csv-File|*.csv|All|*.*'
Left = 727
Top = 224
end
object ChartAxisTransformations1: TChartAxisTransformations
Left = 624
Top = 367
object ChartAxisTransformations1LogarithmAxisTransform1: TLogarithmAxisTransform
Base = 10
end
end
object SaveDialog3: TSaveDialog
DefaultExt = '.bmp'
Filter = 'Bitmap|*.bmp|All|*.*'
Left = 727
Top = 296
end
end