diff options
| author | Gary Bressler <garybressler@nc.rr.com> | 2010-03-01 23:46:44 -0500 |
|---|---|---|
| committer | Gary Bressler <garybressler@nc.rr.com> | 2010-03-01 23:46:44 -0500 |
| commit | 44a8ade3ed5dc4810fd95c41dbe8ec3aa2fb0cf7 (patch) | |
| tree | 4275bbcb03ec58412c3703e4df68f43fb1c10089 /visualizer.py | |
Reorganized tree, along with the visualizer
Diffstat (limited to 'visualizer.py')
| -rwxr-xr-x | visualizer.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/visualizer.py b/visualizer.py new file mode 100755 index 0000000..80c2af9 --- /dev/null +++ b/visualizer.py | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | #!/usr/bin/python | ||
| 2 | |||
| 3 | """Runs the visualizer.""" | ||
| 4 | |||
| 5 | import convert | ||
| 6 | import reader | ||
| 7 | import viz | ||
| 8 | |||
| 9 | import gtk | ||
| 10 | |||
| 11 | path = 'sample_traces/' | ||
| 12 | |||
| 13 | trace_list = [ | ||
| 14 | path + 'st-g6-0.bin', | ||
| 15 | path + 'st-g6-1.bin', | ||
| 16 | path + 'st-g6-2.bin', | ||
| 17 | path + 'st-g6-3.bin' | ||
| 18 | ] | ||
| 19 | |||
| 20 | if __name__ == '__main__': | ||
| 21 | stream = reader.trace_reader.trace_reader(trace_list) | ||
| 22 | stream = reader.sanitizer.sanitizer(stream) | ||
| 23 | stream = reader.gedf_test.gedf_test(stream) | ||
| 24 | sched = convert.convert_trace_to_schedule(stream) | ||
| 25 | sched.scan(10000000) | ||
| 26 | renderer = viz.renderer.Renderer(sched) | ||
| 27 | renderer.prepare_task_graph(attrs=viz.format.GraphFormat(time_per_maj=10000000)) | ||
| 28 | |||
| 29 | viz.viewer.MainWindow(renderer) | ||
| 30 | gtk.main() | ||
| 31 | |||
