aboutsummaryrefslogtreecommitdiffstats
path: root/parse
diff options
context:
space:
mode:
authorNamhoon Kim <namhoonk@cs.unc.edu>2017-04-03 23:35:59 -0400
committerNamhoon Kim <namhoonk@cs.unc.edu>2017-04-03 23:35:59 -0400
commitfb72dd09cfc16d0260363d38df1225b6663bc084 (patch)
treedb1472467249286171d3e35c4b7a77c165571892 /parse
parente15736509ab36e33bc71a0fe1120f2974e389725 (diff)
Diffstat (limited to 'parse')
-rw-r--r--parse/ft.py29
1 files changed, 16 insertions, 13 deletions
diff --git a/parse/ft.py b/parse/ft.py
index 1f05323..6e7278e 100644
--- a/parse/ft.py
+++ b/parse/ft.py
@@ -68,18 +68,21 @@ def extract_ft_data(result, data_dir, work_dir, cycles):
68 68
69 if not len(bins): 69 if not len(bins):
70 return False 70 return False
71 71
72 bin_file = "{}/{}".format(data_dir, bins[0]) 72 for bin in bins:
73 if not os.path.getsize(bin_file): 73 #bin_file = "{}/{}".format(data_dir, bins[0])
74 return False 74 bin_file = "{}/{}".format(data_dir, bin)
75 75 if not os.path.getsize(bin_file):
76 with open("%s/%s" % (work_dir, FT_ERR_NAME), 'w') as err_file: 76 return False
77 sorted_bin = sort_ft(bin_file, err_file, work_dir) 77 #sys.stderr.write(bin_file)
78 78 #sys.stderr.write("\n")
79 for event in conf.OVH_BASE_EVENTS: 79 with open("%s/%s" % (work_dir, FT_ERR_NAME), 'w') as err_file:
80 parse_overhead(result, sorted_bin, event, cycles, 80 sorted_bin = sort_ft(bin_file, err_file, work_dir)
81 work_dir, err_file) 81
82 82 for event in conf.OVH_BASE_EVENTS:
83 os.remove(sorted_bin) 83 parse_overhead(result, sorted_bin, event, cycles,
84 work_dir, err_file)
85
86 os.remove(sorted_bin)
84 87
85 return True 88 return True