diff options
| author | Mac Mollison <mollison@cs.unc.edu> | 2010-11-16 17:39:11 -0500 |
|---|---|---|
| committer | Mac Mollison <mollison@cs.unc.edu> | 2010-11-16 17:39:11 -0500 |
| commit | 27f0b6ca2baac29c1b61001306caf4186f5c108a (patch) | |
| tree | 54975042cefacf26934dfd8337d5ecfdc1b0fc74 | |
| parent | 5c9501fe0966a4de624559f850575c8e8bf3c328 (diff) | |
Fix fatal error in visualizerwip-gary
Whenever the visualizer encountered a SwitchToEvent, it generated the following
error:
Traceback (most recent call last):
File "/home/mollison/bin/unit-trace", line 125, in <module>
viz.visualizer.visualizer(stream3, nsec_time_per_maj)
File "/home/mollison/bin/unit_trace/viz/visualizer.py", line 13, in visualizer
sched.scan(time_per_maj)
File "/home/mollison/bin/unit_trace/viz/schedule.py", line 253, in scan
event.fill_span_event_from_start()
TypeError: unbound method fill_span_event_from_start() must be called with SwitchToEvent instance as first argument (got nothing instead)
| -rw-r--r-- | unit_trace/viz/schedule.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unit_trace/viz/schedule.py b/unit_trace/viz/schedule.py index ec6398d..542524b 100644 --- a/unit_trace/viz/schedule.py +++ b/unit_trace/viz/schedule.py | |||
| @@ -250,7 +250,7 @@ class Schedule(object): | |||
| 250 | for event in EVENT_LIST: | 250 | for event in EVENT_LIST: |
| 251 | switch_event = switches[event] | 251 | switch_event = switches[event] |
| 252 | if switch_event is not None: | 252 | if switch_event is not None: |
| 253 | event.fill_span_event_from_start() | 253 | switch_event.fill_span_event_from_start() |
| 254 | 254 | ||
| 255 | # add events that correspond to the tasks and CPUS, at the very beginning | 255 | # add events that correspond to the tasks and CPUS, at the very beginning |
| 256 | self.time_slot_array.add_item_dummies(self) | 256 | self.time_slot_array.add_item_dummies(self) |
