aboutsummaryrefslogtreecommitdiffstats
path: root/plot_rtas12.py
diff options
context:
space:
mode:
Diffstat (limited to 'plot_rtas12.py')
-rwxr-xr-xplot_rtas12.py31
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
58def get_overhead_title(ov): 58def 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
65def set_plot_opts(opts, p): 68def 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))