-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate_report.py
More file actions
614 lines (564 loc) · 17.7 KB
/
generate_report.py
File metadata and controls
614 lines (564 loc) · 17.7 KB
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
import sys
import os
from datetime import datetime
from shutil import copyfile
import os.path
import threading
import time
LOG = 0
CPU_IDLE_LOADING_AVG_ALL = "[i_all] avg:"
CPU_IDLE_LOADING_AVG_CORE_0 = "[i_0] avg:"
CPU_IDLE_LOADING_AVG_CORE_1 = "[i_1] avg:"
CPU_IDLE_LOADING_AVG_CORE_2 = "[i_2] avg:"
CPU_IDLE_LOADING_AVG_CORE_3 = "[i_3] avg:"
CPU_IDLE_LOADING_AVG_CORE_4 = "[i_4] avg:"
CPU_IDLE_LOADING_AVG_CORE_5 = "[i_5] avg:"
CPU_IDLE_LOADING_AVG_CORE_6 = "[i_6] avg:"
CPU_IDLE_LOADING_AVG_CORE_7 = "[i_7] avg:"
CPU_IDLE_AVG_ALL_LIST = []
CPU_IDLE_AVG_CORE_0_LIST = []
CPU_IDLE_AVG_CORE_1_LIST = []
CPU_IDLE_AVG_CORE_2_LIST = []
CPU_IDLE_AVG_CORE_3_LIST = []
CPU_IDLE_AVG_CORE_4_LIST = []
CPU_IDLE_AVG_CORE_5_LIST = []
CPU_IDLE_AVG_CORE_6_LIST = []
CPU_IDLE_AVG_CORE_7_LIST = []
CPU_RUN_LOADING_AVG_ALL = "[r_all] avg:"
CPU_RUN_LOADING_AVG_CORE_0 = "[r_0] avg:"
CPU_RUN_LOADING_AVG_CORE_1 = "[r_1] avg:"
CPU_RUN_LOADING_AVG_CORE_2 = "[r_2] avg:"
CPU_RUN_LOADING_AVG_CORE_3 = "[r_3] avg:"
CPU_RUN_LOADING_AVG_CORE_4 = "[r_4] avg:"
CPU_RUN_LOADING_AVG_CORE_5 = "[r_5] avg:"
CPU_RUN_LOADING_AVG_CORE_6 = "[r_6] avg:"
CPU_RUN_LOADING_AVG_CORE_7 = "[r_7] avg:"
CPU_RUN_AVG_ALL_LIST = []
CPU_RUN_AVG_CORE_0_LIST = []
CPU_RUN_AVG_CORE_1_LIST = []
CPU_RUN_AVG_CORE_2_LIST = []
CPU_RUN_AVG_CORE_3_LIST = []
CPU_RUN_AVG_CORE_4_LIST = []
CPU_RUN_AVG_CORE_5_LIST = []
CPU_RUN_AVG_CORE_6_LIST = []
CPU_RUN_AVG_CORE_7_LIST = []
IMU_DROP_TOTAL_KEYWORD = "IMU total miss:"
IMU_TOTAL_KEYWORD = "IMU total:"
IMU_DROP_RATE_KEYWORD = "IMU drop rate:"
IMU_DROP_TOTAL_LIST = []
IMU_TOTAL_LIST = []
IMU_DROP_RATE_LIST = []
CRA_DROP_TOTAL_KEYWORD = "CRA total miss:"
CRA_TOTAL_KEYWORD = "CRA total:"
CRA_DROP_RATE_KEYWORD = "CRA drop rate:"
CRA_DROP_TOTAL_LIST = []
CRA_TOTAL_LIST = []
CRA_DROP_RATE_LIST = []
CRB_DROP_TOTAL_KEYWORD = "CRB total miss:"
CRB_TOTAL_KEYWORD = "CRB total:"
CRB_DROP_RATE_KEYWORD = "CRB drop rate:"
CRB_DROP_TOTAL_LIST = []
CRB_TOTAL_LIST = []
CRB_DROP_RATE_LIST = []
MRCAM1_DROP_TOTAL_KEYWORD = "CAM1 total drop count:"
MRCAM1_TOTAL_KEYWORD = "CAM1 total counts:"
MRCAM1_DROP_RATE_KEYWORD = "drop rate:"
MRCAM1_DROP_TOTAL_LIST = []
MRCAM1_TOTAL_LIST = []
MRCAM1_DROP_RATE_LIST = []
MRCAM2_DROP_TOTAL_KEYWORD = "CAM2 total drop count:"
MRCAM2_TOTAL_KEYWORD = "CAM2 total counts:"
MRCAM2_DROP_RATE_KEYWORD = "drop rate:"
MRCAM2_DROP_TOTAL_LIST = []
MRCAM2_TOTAL_LIST = []
MRCAM2_DROP_RATE_LIST = []
argv_len = len(sys.argv)
if (argv_len == 2):
f_log = open(sys.argv[1], "r");
for line in f_log.readlines():
line=line.strip('\n')
#CPU idle all loading
cpu_idle_loading_avg_all_found = line.find(CPU_IDLE_LOADING_AVG_ALL)
if (cpu_idle_loading_avg_all_found != -1):
value = line[cpu_idle_loading_avg_all_found+13:len(line)-1]
if (LOG == 1):
print value
CPU_IDLE_AVG_ALL_LIST.append(value)
continue
#CPU idle core 0 loading
cpu_idle_loading_avg_core_0_found = line.find(CPU_IDLE_LOADING_AVG_CORE_0)
if (cpu_idle_loading_avg_core_0_found != -1):
value = line[cpu_idle_loading_avg_core_0_found+11:len(line)-1]
if (LOG == 1):
print value
CPU_IDLE_AVG_CORE_0_LIST.append(value)
continue
#CPU idle core 1 loading
cpu_idle_loading_avg_core_1_found = line.find(CPU_IDLE_LOADING_AVG_CORE_1)
if (cpu_idle_loading_avg_core_1_found != -1):
value = line[cpu_idle_loading_avg_core_1_found+11:len(line)-1]
if (LOG == 1):
print value
CPU_IDLE_AVG_CORE_1_LIST.append(value)
continue
#CPU idle core 2 loading
cpu_idle_loading_avg_core_2_found = line.find(CPU_IDLE_LOADING_AVG_CORE_2)
if (cpu_idle_loading_avg_core_2_found != -1):
value = line[cpu_idle_loading_avg_core_2_found+11:len(line)-1]
if (LOG == 1):
print value
CPU_IDLE_AVG_CORE_2_LIST.append(value)
continue
#CPU idle core 3 loading
cpu_idle_loading_avg_core_3_found = line.find(CPU_IDLE_LOADING_AVG_CORE_3)
if (cpu_idle_loading_avg_core_3_found != -1):
value = line[cpu_idle_loading_avg_core_3_found+11:len(line)-1]
if (LOG == 1):
print value
CPU_IDLE_AVG_CORE_3_LIST.append(value)
continue
#CPU idle core 4 loading
cpu_idle_loading_avg_core_4_found = line.find(CPU_IDLE_LOADING_AVG_CORE_4)
if (cpu_idle_loading_avg_core_4_found != -1):
value = line[cpu_idle_loading_avg_core_4_found+11:len(line)-1]
if (LOG == 1):
print value
CPU_IDLE_AVG_CORE_4_LIST.append(value)
continue
#CPU idle core 5 loading
cpu_idle_loading_avg_core_5_found = line.find(CPU_IDLE_LOADING_AVG_CORE_5)
if (cpu_idle_loading_avg_core_5_found != -1):
value = line[cpu_idle_loading_avg_core_5_found+11:len(line)-1]
if (LOG == 1):
print value
CPU_IDLE_AVG_CORE_5_LIST.append(value)
continue
#CPU idle core 6 loading
cpu_idle_loading_avg_core_6_found = line.find(CPU_IDLE_LOADING_AVG_CORE_6)
if (cpu_idle_loading_avg_core_6_found != -1):
value = line[cpu_idle_loading_avg_core_6_found+11:len(line)-1]
if (LOG == 1):
print value
CPU_IDLE_AVG_CORE_6_LIST.append(value)
continue
#CPU idle core 7 loading
cpu_idle_loading_avg_core_7_found = line.find(CPU_IDLE_LOADING_AVG_CORE_7)
if (cpu_idle_loading_avg_core_7_found != -1):
value = line[cpu_idle_loading_avg_core_7_found+11:len(line)-1]
if (LOG == 1):
print value
CPU_IDLE_AVG_CORE_7_LIST.append(value)
continue
#CPU running all loading
cpu_running_loading_avg_all_found = line.find(CPU_RUN_LOADING_AVG_ALL)
if (cpu_running_loading_avg_all_found != -1):
value = line[cpu_running_loading_avg_all_found+13:len(line)-1]
if (LOG == 1):
print value
CPU_RUN_AVG_ALL_LIST.append(value)
continue
#CPU running core 0 loading
cpu_running_loading_avg_core_0_found = line.find(CPU_RUN_LOADING_AVG_CORE_0)
if (cpu_running_loading_avg_core_0_found != -1):
value = line[cpu_running_loading_avg_core_0_found+11:len(line)-1]
if (LOG == 1):
print line
print value
CPU_RUN_AVG_CORE_0_LIST.append(value)
continue
#CPU running core 1 loading
cpu_running_loading_avg_core_1_found = line.find(CPU_RUN_LOADING_AVG_CORE_1)
if (cpu_running_loading_avg_core_1_found != -1):
value = line[cpu_running_loading_avg_core_1_found+11:len(line)-1]
if (LOG == 1):
print line
print value
CPU_RUN_AVG_CORE_1_LIST.append(value)
continue
#CPU running core 2 loading
cpu_running_loading_avg_core_2_found = line.find(CPU_RUN_LOADING_AVG_CORE_2)
if (cpu_running_loading_avg_core_2_found != -1):
value = line[cpu_running_loading_avg_core_2_found+11:len(line)-1]
if (LOG == 1):
print value
CPU_RUN_AVG_CORE_2_LIST.append(value)
continue
#CPU running core 3 loading
cpu_running_loading_avg_core_3_found = line.find(CPU_RUN_LOADING_AVG_CORE_3)
if (cpu_running_loading_avg_core_3_found != -1):
value = line[cpu_running_loading_avg_core_3_found+13:len(line)-1]
if (LOG == 1):
print value
CPU_RUN_AVG_CORE_3_LIST.append(value)
continue
#CPU running core 4 loading
cpu_running_loading_avg_core_4_found = line.find(CPU_RUN_LOADING_AVG_CORE_4)
if (cpu_running_loading_avg_core_4_found != -1):
value = line[cpu_running_loading_avg_core_4_found+11:len(line)-1]
if (LOG == 1):
print value
CPU_RUN_AVG_CORE_4_LIST.append(value)
continue
#CPU running core 5 loading
cpu_running_loading_avg_core_5_found = line.find(CPU_RUN_LOADING_AVG_CORE_5)
if (cpu_running_loading_avg_core_5_found != -1):
value = line[cpu_running_loading_avg_core_5_found+11:len(line)-1]
if (LOG == 1):
print value
CPU_RUN_AVG_CORE_5_LIST.append(value)
continue
#CPU running core 6 loading
cpu_running_loading_avg_core_6_found = line.find(CPU_RUN_LOADING_AVG_CORE_6)
if (cpu_running_loading_avg_core_6_found != -1):
value = line[cpu_running_loading_avg_core_6_found+11:len(line)-1]
if (LOG == 1):
print value
CPU_RUN_AVG_CORE_6_LIST.append(value)
continue
#CPU running core 7 loading
cpu_running_loading_avg_core_7_found = line.find(CPU_RUN_LOADING_AVG_CORE_7)
if (cpu_running_loading_avg_core_7_found != -1):
value = line[cpu_running_loading_avg_core_7_found+11:len(line)-1]
if (LOG == 1):
print value
CPU_RUN_AVG_CORE_7_LIST.append(value)
continue
#IMU drop count
imu_drop_count = line.find(IMU_DROP_TOTAL_KEYWORD)
if (imu_drop_count != -1):
imu_drop_count_end = line.find(",")
value = line[imu_drop_count+16:imu_drop_count_end]
IMU_DROP_TOTAL_LIST.append(value)
#IMU total count
imu_total_count = line.find(IMU_TOTAL_KEYWORD)
if (imu_total_count != -1):
value = line[imu_total_count+11:]
IMU_TOTAL_LIST.append(value)
#IMU drop rate
imu_drop_rate = line.find(IMU_DROP_RATE_KEYWORD)
if (imu_drop_rate != -1):
value = line[imu_drop_rate+15:]
IMU_DROP_RATE_LIST.append(value)
#CRA drop count
cra_drop_count = line.find(CRA_DROP_TOTAL_KEYWORD)
if (cra_drop_count != -1):
cra_drop_count_end = line.find(",")
value = line[cra_drop_count+16:cra_drop_count_end]
CRA_DROP_TOTAL_LIST.append(value)
#CRA total count
cra_total_count = line.find(CRA_TOTAL_KEYWORD)
if (cra_total_count != -1):
value = line[cra_total_count+11:]
CRA_TOTAL_LIST.append(value)
#CRA drop rate
cra_drop_rate = line.find(CRA_DROP_RATE_KEYWORD)
if (cra_drop_rate != -1):
value = line[cra_drop_rate+15:]
CRA_DROP_RATE_LIST.append(value)
#CRB drop count
crb_drop_count = line.find(CRB_DROP_TOTAL_KEYWORD)
if (crb_drop_count != -1):
crb_drop_count_end = line.find(",")
value = line[crb_drop_count+16:crb_drop_count_end]
CRB_DROP_TOTAL_LIST.append(value)
#CRB total count
crb_total_count = line.find(CRB_TOTAL_KEYWORD)
if (crb_total_count != -1):
value = line[crb_total_count+11:]
CRB_TOTAL_LIST.append(value)
#CRB drop rate
crb_drop_rate = line.find(CRB_DROP_RATE_KEYWORD)
if (crb_drop_rate != -1):
value = line[crb_drop_rate+15:]
CRB_DROP_RATE_LIST.append(value)
#MRCAM1 drop count
mrcam1_drop_count = line.find(MRCAM1_DROP_TOTAL_KEYWORD)
if (mrcam1_drop_count != -1):
mrcam1_drop_count_end = line.find(",")
value = line[mrcam1_drop_count+23:mrcam1_drop_count_end]
MRCAM1_DROP_TOTAL_LIST.append(value)
#MRCAM1 total count
mrcam1_total_count = line.find(MRCAM1_TOTAL_KEYWORD)
if (mrcam1_total_count != -1):
value = line[mrcam1_total_count+19:]
MRCAM1_TOTAL_LIST.append(value)
#MRCAM1 drop rate
mrcam1_drop_count = line.find(MRCAM1_DROP_TOTAL_KEYWORD)
if (mrcam1_drop_count != -1):
mrcam1_drop_rate = line.find(MRCAM1_DROP_RATE_KEYWORD)
if (mrcam1_drop_rate != -1):
value = line[mrcam1_drop_rate+11:]
MRCAM1_DROP_RATE_LIST.append(value)
#MRCAM2 drop count
mrcam2_drop_count = line.find(MRCAM2_DROP_TOTAL_KEYWORD)
if (mrcam2_drop_count != -1):
mrcam2_drop_count_end = line.find(",")
value = line[mrcam2_drop_count+23:mrcam2_drop_count_end]
MRCAM2_DROP_TOTAL_LIST.append(value)
#MRCAM2 total count
mrcam2_total_count = line.find(MRCAM2_TOTAL_KEYWORD)
if (mrcam2_total_count != -1):
value = line[mrcam2_total_count+19:]
MRCAM2_TOTAL_LIST.append(value)
#MRCAM2 drop rate
mrcam2_drop_count = line.find(MRCAM2_DROP_TOTAL_KEYWORD)
if (mrcam2_drop_count != -1):
mrcam2_drop_rate = line.find(MRCAM2_DROP_RATE_KEYWORD)
if (mrcam2_drop_rate != -1):
value = line[mrcam2_drop_rate+11:]
MRCAM2_DROP_RATE_LIST.append(value)
f_log.close()
else:
print "argument length: " + (str)(argv_len) + " is wrong"
print "Command example: python " + sys.argv[0] + " main.log"
f_csv = open("main_report.csv", "w+");
#print header
f_csv.write("CPU idle loading")
c = 1
while c <= (len(CPU_IDLE_AVG_ALL_LIST)):
f_csv.write("," + (str)(c))
c += 1
f_csv.write("\n")
#print CPU idle loading ALL
f_csv.write("All")
c = 0
while c < (len(CPU_IDLE_AVG_ALL_LIST)):
f_csv.write("," + (str)(CPU_IDLE_AVG_ALL_LIST[c]))
c += 1
f_csv.write("\n")
#print CPU idle loading Core 0
f_csv.write("Core 0")
c = 0
while c < (len(CPU_IDLE_AVG_CORE_0_LIST)):
f_csv.write("," + (str)(CPU_IDLE_AVG_CORE_0_LIST[c]))
c += 1
f_csv.write("\n")
#print CPU idle loading Core 1
f_csv.write("Core 1")
c = 0
while c < (len(CPU_IDLE_AVG_CORE_1_LIST)):
f_csv.write("," + (str)(CPU_IDLE_AVG_CORE_1_LIST[c]))
c += 1
f_csv.write("\n")
#print CPU idle loading Core 2
f_csv.write("Core 2")
c = 0
while c < (len(CPU_IDLE_AVG_CORE_2_LIST)):
f_csv.write("," + (str)(CPU_IDLE_AVG_CORE_2_LIST[c]))
c += 1
f_csv.write("\n")
#print CPU idle loading Core 3
f_csv.write("Core 3")
c = 0
while c < (len(CPU_IDLE_AVG_CORE_3_LIST)):
f_csv.write("," + (str)(CPU_IDLE_AVG_CORE_3_LIST[c]))
c += 1
f_csv.write("\n")
#print CPU idle loading Core 4
f_csv.write("Core 4")
c = 0
while c < (len(CPU_IDLE_AVG_CORE_4_LIST)):
f_csv.write("," + (str)(CPU_IDLE_AVG_CORE_4_LIST[c]))
c += 1
f_csv.write("\n")
#print CPU idle loading Core 5
f_csv.write("Core 5")
c = 0
while c < (len(CPU_IDLE_AVG_CORE_5_LIST)):
f_csv.write("," + (str)(CPU_IDLE_AVG_CORE_5_LIST[c]))
c += 1
f_csv.write("\n")
#print CPU idle loading Core 6
f_csv.write("Core 6")
c = 0
while c < (len(CPU_IDLE_AVG_CORE_6_LIST)):
f_csv.write("," + (str)(CPU_IDLE_AVG_CORE_6_LIST[c]))
c += 1
f_csv.write("\n")
#print CPU idle loading Core 7
f_csv.write("Core 7")
c = 0
while c < (len(CPU_IDLE_AVG_CORE_7_LIST)):
f_csv.write("," + (str)(CPU_IDLE_AVG_CORE_7_LIST[c]))
c += 1
f_csv.write("\n")
#print separate idle and running
f_csv.write("\n")
#print header
f_csv.write("CPU running loading")
c = 1
while c <= (len(CPU_IDLE_AVG_ALL_LIST)):
f_csv.write("," + (str)(c))
c += 1
f_csv.write("\n")
#print CPU running loading ALL
f_csv.write("All")
c = 0
while c < (len(CPU_RUN_AVG_ALL_LIST)):
f_csv.write("," + (str)(CPU_RUN_AVG_ALL_LIST[c]))
c += 1
f_csv.write("\n")
#print CPU running loading Core 0
f_csv.write("Core 0")
c = 0
while c < (len(CPU_RUN_AVG_CORE_0_LIST)):
f_csv.write("," + (str)(CPU_RUN_AVG_CORE_0_LIST[c]))
c += 1
f_csv.write("\n")
#print CPU running loading Core 1
f_csv.write("Core 1")
c = 0
while c < (len(CPU_RUN_AVG_CORE_1_LIST)):
f_csv.write("," + (str)(CPU_RUN_AVG_CORE_1_LIST[c]))
c += 1
f_csv.write("\n")
#print CPU running loading Core 2
f_csv.write("Core 2")
c = 0
while c < (len(CPU_RUN_AVG_CORE_2_LIST)):
f_csv.write("," + (str)(CPU_RUN_AVG_CORE_2_LIST[c]))
c += 1
f_csv.write("\n")
#print CPU running loading Core 3
f_csv.write("Core 3")
c = 0
while c < (len(CPU_RUN_AVG_CORE_3_LIST)):
f_csv.write("," + (str)(CPU_RUN_AVG_CORE_3_LIST[c]))
c += 1
f_csv.write("\n")
#print CPU running loading Core 4
f_csv.write("Core 4")
c = 0
while c < (len(CPU_RUN_AVG_CORE_4_LIST)):
f_csv.write("," + (str)(CPU_RUN_AVG_CORE_4_LIST[c]))
c += 1
f_csv.write("\n")
#print CPU running loading Core 5
f_csv.write("Core 5")
c = 0
while c < (len(CPU_RUN_AVG_CORE_5_LIST)):
f_csv.write("," + (str)(CPU_RUN_AVG_CORE_5_LIST[c]))
c += 1
f_csv.write("\n")
#print CPU running loading Core 6
f_csv.write("Core 6")
c = 0
while c < (len(CPU_RUN_AVG_CORE_6_LIST)):
f_csv.write("," + (str)(CPU_RUN_AVG_CORE_6_LIST[c]))
c += 1
f_csv.write("\n")
#print CPU running loading Core 7
f_csv.write("Core 7")
c = 0
while c < (len(CPU_RUN_AVG_CORE_7_LIST)):
f_csv.write("," + (str)(CPU_RUN_AVG_CORE_7_LIST[c]))
c += 1
f_csv.write("\n")
#print separate CPU running and drop rate
f_csv.write("\n")
#print IMU drop count
f_csv.write("IMU drop count")
c = 0
while c < (len(IMU_DROP_TOTAL_LIST)):
f_csv.write("," + (str)(IMU_DROP_TOTAL_LIST[c]))
c += 1
f_csv.write("\n")
#print IMU total count
f_csv.write("IMU total count")
c = 0
while c < (len(IMU_TOTAL_LIST)):
f_csv.write("," + (str)(IMU_TOTAL_LIST[c]))
c += 1
f_csv.write("\n")
#print IMU drop rate
f_csv.write("IMU drop rate")
c = 0
while c < (len(IMU_DROP_RATE_LIST)):
f_csv.write("," + (str)(IMU_DROP_RATE_LIST[c]))
c += 1
f_csv.write("\n")
#print CRA drop count
f_csv.write("CRA drop count")
c = 0
while c < (len(CRA_DROP_TOTAL_LIST)):
f_csv.write("," + (str)(CRA_DROP_TOTAL_LIST[c]))
c += 1
f_csv.write("\n")
#print CRA total count
f_csv.write("CRA total count")
c = 0
while c < (len(CRA_TOTAL_LIST)):
f_csv.write("," + (str)(CRA_TOTAL_LIST[c]))
c += 1
f_csv.write("\n")
#print CRA drop rate
f_csv.write("CRA drop rate")
c = 0
while c < (len(CRA_DROP_RATE_LIST)):
f_csv.write("," + (str)(CRA_DROP_RATE_LIST[c]))
c += 1
f_csv.write("\n")
#print CRB drop count
f_csv.write("CRB drop count")
c = 0
while c < (len(CRB_DROP_TOTAL_LIST)):
f_csv.write("," + (str)(CRB_DROP_TOTAL_LIST[c]))
c += 1
f_csv.write("\n")
#print CRB total count
f_csv.write("CRB total count")
c = 0
while c < (len(CRB_TOTAL_LIST)):
f_csv.write("," + (str)(CRB_TOTAL_LIST[c]))
c += 1
f_csv.write("\n")
#print CRB drop rate
f_csv.write("CRB drop rate")
c = 0
while c < (len(CRB_DROP_RATE_LIST)):
f_csv.write("," + (str)(CRB_DROP_RATE_LIST[c]))
c += 1
f_csv.write("\n")
#print MR Cam1 drop count
f_csv.write("MR Cam1 drop count")
c = 0
while c < (len(MRCAM1_DROP_TOTAL_LIST)):
f_csv.write("," + (str)(MRCAM1_DROP_TOTAL_LIST[c]))
c += 1
f_csv.write("\n")
#print MR Cam1 total frame
f_csv.write("MR Cam1 total frame")
c = 0
while c < (len(MRCAM1_TOTAL_LIST)):
f_csv.write("," + (str)(MRCAM1_TOTAL_LIST[c]))
c += 1
f_csv.write("\n")
#print MR Cam1 drop rate
f_csv.write("MR Cam1 drop rate")
c = 0
while c < (len(MRCAM1_DROP_RATE_LIST)):
f_csv.write("," + (str)(MRCAM1_DROP_RATE_LIST[c]))
c += 1
f_csv.write("\n")
#print MR Cam2 drop count
f_csv.write("MR Cam2 drop count")
c = 0
while c < (len(MRCAM2_DROP_TOTAL_LIST)):
f_csv.write("," + (str)(MRCAM2_DROP_TOTAL_LIST[c]))
c += 1
f_csv.write("\n")
#print MR Cam2 total frame
f_csv.write("MR Cam2 total frame")
c = 0
while c < (len(MRCAM2_TOTAL_LIST)):
f_csv.write("," + (str)(MRCAM2_TOTAL_LIST[c]))
c += 1
f_csv.write("\n")
#print MR Cam2 drop rate
f_csv.write("MR Cam2 drop rate")
c = 0
while c < (len(MRCAM2_DROP_RATE_LIST)):
f_csv.write("," + (str)(MRCAM2_DROP_RATE_LIST[c]))
c += 1
f_csv.write("\n")
f_csv.close()