diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2011-12-28 16:34:25 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2011-12-28 16:34:25 -0500 |
commit | 1592f13345ec22d786ae0eca862b9b890dce0348 (patch) | |
tree | 7569040b707be3b7267a022c0b53ee6323056ad1 | |
parent | 8a53287722d90631f08590e40c189fa89726eb72 (diff) |
seperated level overheads
-rwxr-xr-x | plot_rtas12.py | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/plot_rtas12.py b/plot_rtas12.py index d5e9ed9..825827d 100755 --- a/plot_rtas12.py +++ b/plot_rtas12.py | |||
@@ -56,10 +56,13 @@ def get_sched_title(sched): | |||
56 | return SCHEDULERS[sched] | 56 | return SCHEDULERS[sched] |
57 | 57 | ||
58 | def get_overhead_title(ov): | 58 | def get_overhead_title(ov): |
59 | OV = {'SCHED': '(A, B, C)', | 59 | OV = {'LVLA-SCHED': '(A)', |
60 | 'LVLA-SCHED': '(A)', | 60 | 'LVLB-SCHED': '(B)', |
61 | 'RELEASE': '(A, B, C)', | 61 | 'LVLC-SCHED': '(C)', |
62 | 'LVLA-RELEASE': '(A)'} | 62 | 'LVLA-RELEASE': '(A)', |
63 | 'LVLB-RELEASE': '(B)', | ||
64 | 'LVLC-RELEASE': '(C)', | ||
65 | } | ||
63 | return OV[ov] | 66 | return OV[ov] |
64 | 67 | ||
65 | def set_plot_opts(opts, p): | 68 | def set_plot_opts(opts, p): |
@@ -168,16 +171,16 @@ def plot_release(opts, data_dir, ycol, title, fname): | |||
168 | p.output = '{0}/{1}'.format(data_dir, fname) | 171 | p.output = '{0}/{1}'.format(data_dir, fname) |
169 | refs = [] # need to save reference to file handle so it is not deleted | 172 | refs = [] # need to save reference to file handle so it is not deleted |
170 | 173 | ||
171 | for o_type in ['RELEASE', 'LVLA-RELEASE']: | 174 | for o_type in ['LVLA-RELEASE','LVLB-RELEASE', 'LVLC-RELEASE']: |
172 | for sched in SCHEDULERS: | 175 | for sched in SCHEDULERS: |
173 | if o_type == 'RELEASE': | 176 | # if o_type == 'RELEASE': |
174 | # we have to make the regular release include the level-A | 177 | # # we have to make the regular release include the level-A |
175 | # releases | 178 | # # releases |
176 | fname, ref = include_level_a_releases(data_dir, o_type, | 179 | # fname, ref = include_level_a_releases(data_dir, o_type, |
177 | sched, ycol) | 180 | # sched, ycol) |
178 | refs.append(ref) | 181 | # refs.append(ref) |
179 | else: | 182 | # else: |
180 | fname = '{0}/scheduler={1}_overhead={2}.csv'.format(data_dir, sched, o_type) | 183 | fname = '{0}/scheduler={1}_overhead={2}.csv'.format(data_dir, sched, o_type) |
181 | ti = '{0} {1}'.format(get_sched_title(sched), get_overhead_title(o_type)) | 184 | ti = '{0} {1}'.format(get_sched_title(sched), get_overhead_title(o_type)) |
182 | p.curves += [curve(fname=fname, xcol=gnuplot_col('n_tasks'), | 185 | p.curves += [curve(fname=fname, xcol=gnuplot_col('n_tasks'), |
183 | ycol=ycol, title=ti)] | 186 | ycol=ycol, title=ti)] |
@@ -214,7 +217,7 @@ def plot_sched(opts, data_dir, ycol, title, fname): | |||
214 | p = Plot() | 217 | p = Plot() |
215 | p.output = '{0}/{1}'.format(data_dir, fname) | 218 | p.output = '{0}/{1}'.format(data_dir, fname) |
216 | 219 | ||
217 | for o_type in ['SCHED', 'LVLA-SCHED']: | 220 | for o_type in ['LVLA-SCHED','LVLB-SCHED','LVLC-SCHED']: |
218 | for sched in SCHEDULERS: | 221 | for sched in SCHEDULERS: |
219 | fname = '{0}/scheduler={1}_overhead={2}.csv'.format(data_dir, sched, o_type) | 222 | fname = '{0}/scheduler={1}_overhead={2}.csv'.format(data_dir, sched, o_type) |
220 | ti = '{0} {1}'.format(get_sched_title(sched), get_overhead_title(o_type)) | 223 | ti = '{0} {1}'.format(get_sched_title(sched), get_overhead_title(o_type)) |