aboutsummaryrefslogtreecommitdiffstats
path: root/plot_rtas12.py
diff options
context:
space:
mode:
authorChristopher Kenna <cjk@cs.unc.edu>2011-10-14 01:56:58 -0400
committerChristopher Kenna <cjk@cs.unc.edu>2011-10-14 01:56:58 -0400
commitee994acc67a6d6a67d8413f7c1724cbae3d3ea41 (patch)
treef9ebd8ddbc953c534c10c1185c32519f3d2434a2 /plot_rtas12.py
parent51ab2aeda3c0ee94303a626c072b46f391ebdf97 (diff)
cosmetic tweaks
Diffstat (limited to 'plot_rtas12.py')
-rwxr-xr-xplot_rtas12.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/plot_rtas12.py b/plot_rtas12.py
index c248b95..f4deef9 100755
--- a/plot_rtas12.py
+++ b/plot_rtas12.py
@@ -50,9 +50,9 @@ def get_sched_title(sched):
50 return SCHEDULERS[sched] 50 return SCHEDULERS[sched]
51 51
52def get_overhead_title(ov): 52def get_overhead_title(ov):
53 OV = {'SCHED': '(A + B + C)', 53 OV = {'SCHED': '(A, B, C)',
54 'LVLA-SCHED': '(A)', 54 'LVLA-SCHED': '(A)',
55 'RELEASE': '(A + B + C)', 55 'RELEASE': '(A, B, C)',
56 'LVLA-RELEASE': '(A)'} 56 'LVLA-RELEASE': '(A)'}
57 return OV[ov] 57 return OV[ov]
58 58
@@ -157,17 +157,18 @@ def plot_release(data_dir, ycol, title, fname):
157 refs.append(ref) 157 refs.append(ref)
158 else: 158 else:
159 fname = '{0}/scheduler={1}_overhead={2}.csv'.format(data_dir, sched, o_type) 159 fname = '{0}/scheduler={1}_overhead={2}.csv'.format(data_dir, sched, o_type)
160 ti = '{0}{1}'.format(get_sched_title(sched), get_overhead_title(o_type)) 160 ti = '{0} {1}'.format(get_sched_title(sched), get_overhead_title(o_type))
161 p.curves += [curve(fname=fname, xcol=gnuplot_col('n_tasks'), 161 p.curves += [curve(fname=fname, xcol=gnuplot_col('n_tasks'),
162 ycol=ycol, title=ti)] 162 ycol=ycol, title=ti)]
163 p.xlabel = 'number of tasks' 163 p.xlabel = 'number of tasks'
164 p.ylabel = 'overhead (microseconds)' 164 p.ylabel = 'overhead (microseconds)'
165 set_plot_opts(p) 165 set_plot_opts(p)
166 if ycol == gnuplot_col('max'): 166 if gnuplot_col('avg') == ycol:
167 # worst-case release gets the key 167 # make this graph's y-scale match the scale on the average-case
168 # scheduling overhead graph because they are next to each other
169 p.yrange = (0, 16)
170 # it gets the key
168 p.key = 'top left' 171 p.key = 'top left'
169 # make the graph tall so the damn key fits
170 p.yrange = (0, 80)
171 p.gnuplot_exec() 172 p.gnuplot_exec()
172 173
173def plot_sched(data_dir, ycol, title, fname): 174def plot_sched(data_dir, ycol, title, fname):
@@ -178,7 +179,7 @@ def plot_sched(data_dir, ycol, title, fname):
178 for o_type in ['SCHED', 'LVLA-SCHED']: 179 for o_type in ['SCHED', 'LVLA-SCHED']:
179 for sched in SCHEDULERS: 180 for sched in SCHEDULERS:
180 fname = '{0}/scheduler={1}_overhead={2}.csv'.format(data_dir, sched, o_type) 181 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)) 182 ti = '{0} {1}'.format(get_sched_title(sched), get_overhead_title(o_type))
182 p.curves += [curve(fname=fname, xcol=gnuplot_col('n_tasks'), 183 p.curves += [curve(fname=fname, xcol=gnuplot_col('n_tasks'),
183 ycol=ycol, title=ti)] 184 ycol=ycol, title=ti)]
184 p.xlabel = 'number of tasks' 185 p.xlabel = 'number of tasks'