diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2014-01-13 14:34:47 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2014-01-13 14:34:47 -0500 |
commit | 1a000342dacd3dce7859c07dcf664852b21d7793 (patch) | |
tree | 397d885985738a5988264a783df5785c0f467f55 | |
parent | a77f27b5aa681244938d8aea6e1b7bf36b978c22 (diff) |
Discard interlaced trace events
-rwxr-xr-x | distill_co.py | 2 | ||||
-rw-r--r-- | parse/ft.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/distill_co.py b/distill_co.py index d507f47..f3e4191 100755 --- a/distill_co.py +++ b/distill_co.py | |||
@@ -138,7 +138,7 @@ def process_cpmd(csv_file, params): | |||
138 | for d,c in costs.iteritems(): | 138 | for d,c in costs.iteritems(): |
139 | arr = np.array(c, float) | 139 | arr = np.array(c, float) |
140 | arr = np.sort(arr) | 140 | arr = np.sort(arr) |
141 | # (arr, mincut, maxcut) = utils.iqr.apply_iqr(arr, 1.5) | 141 | (arr, mincut, maxcut) = utils.iqr.apply_iqr(arr, 1.5) |
142 | for x in np.nditer(arr, op_flags=['readwrite']): | 142 | for x in np.nditer(arr, op_flags=['readwrite']): |
143 | x[...] = utils.machines.cycles_to_us(params['host'], x) | 143 | x[...] = utils.machines.cycles_to_us(params['host'], x) |
144 | costs[d] = arr | 144 | costs[d] = arr |
diff --git a/parse/ft.py b/parse/ft.py index 1f05323..47dc699 100644 --- a/parse/ft.py +++ b/parse/ft.py | |||
@@ -21,7 +21,8 @@ def parse_overhead(result, overhead_bin, overhead, cycles, out_dir, err_file): | |||
21 | ovh_file = open(ovh_fname, 'w') | 21 | ovh_file = open(ovh_fname, 'w') |
22 | 22 | ||
23 | # Extract matching overhead events into a seperate file | 23 | # Extract matching overhead events into a seperate file |
24 | cmd = [conf.BINS["ftsplit"], "-r", "-b", overhead, overhead_bin] | 24 | # cmd = [conf.BINS["ftsplit"], "-r", "-b", overhead, overhead_bin] |
25 | cmd = [conf.BINS["ftsplit"], "-r", "-i", overhead, overhead_bin] | ||
25 | ret = subprocess.call(cmd, cwd=out_dir, stderr=err_file, stdout=ovh_file) | 26 | ret = subprocess.call(cmd, cwd=out_dir, stderr=err_file, stdout=ovh_file) |
26 | size = os.stat(ovh_fname).st_size | 27 | size = os.stat(ovh_fname).st_size |
27 | 28 | ||