diff options
Diffstat (limited to 'timechart')
-rw-r--r-- | timechart/model.py | 2 | ||||
-rw-r--r-- | timechart/plugins/spi.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/timechart/model.py b/timechart/model.py index 99ee223..7d073cb 100644 --- a/timechart/model.py +++ b/timechart/model.py @@ -451,7 +451,7 @@ class tcProject(HasTraits): self.linenumbers.append(event.linenumber) self.timestamps.append(event.timestamp) if event.event=='function': - callback = "do_event_"+event.callee + callback = "do_function_"+event.callee if self.plugin_methods.has_key(callback): try: self.plugin_methods[callback](self,event) diff --git a/timechart/plugins/spi.py b/timechart/plugins/spi.py index 4aa0178..a6f60e6 100644 --- a/timechart/plugins/spi.py +++ b/timechart/plugins/spi.py @@ -14,17 +14,17 @@ spi_bg #80ff80 "spi":(tcProcess, MISC_TRACES_CLASS), } @staticmethod - def do_event_spi_sync(proj,event): + def do_function_spi_sync(proj,event): process = proj.generic_find_process(0,"spi:%s"%(event.caller),"spi") proj.last_spi.append(process) proj.generic_process_start(process,event,False) @staticmethod - def do_event_spi_complete(proj,event): + def do_function_spi_complete(proj,event): process = proj.last_spi.pop(0) proj.generic_process_end(process,event,False) @staticmethod - def do_event_spi_async(proj,event): + def do_function_spi_async(proj,event): if event.caller != 'spi_sync': - proj.do_event_spi_sync(event,False) + spi.do_function_spi_sync(proj,event) plugin_register(spi) |