diff options
author | jaberg <james@localhost.localdomain> | 2006-12-14 01:16:25 (GMT) |
---|---|---|
committer | jaberg <james@localhost.localdomain> | 2006-12-14 01:16:25 (GMT) |
commit | 88e44e8b64658963635bb5ccbc28de1f2e09b7f2 (patch) | |
tree | 24cd724e5addf3a58f9af10297d0276a24d7b47a /GUI/Core/MainWindow.py | |
parent | 349f8bcfb98ac2621a0fd358510753d560587397 (diff) |
asdf
Diffstat (limited to 'GUI/Core/MainWindow.py')
-rw-r--r-- | GUI/Core/MainWindow.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/GUI/Core/MainWindow.py b/GUI/Core/MainWindow.py index 1bfd31f..d1a6dd6 100644 --- a/GUI/Core/MainWindow.py +++ b/GUI/Core/MainWindow.py @@ -388,21 +388,23 @@ class MainWindow( gtk.EventBox ): self.kb_record = self.playButton.get_active() and self.keyboardRecordButton.get_active() and self.keyboardButton.get_active() def onTimeout(self): - TP.ProfileBegin( "onTimeout sendText" ) + pref="MainWindow::onTimeout " + + TP.ProfileBegin( pref+"send" ) CSoundClient.sendText( "\n".join(self.noteLooper.next()) ) - TP.ProfileEnd( "onTimeout sendText" ) + TP.ProfileEnd( pref+"send" ) - TP.ProfileBegin( "onTimeout updateFPS" ) + TP.ProfileBegin( pref+"update" ) self.updateFPS() - TP.ProfileEnd( "onTimeout updateFPS" ) + TP.ProfileEnd( pref+"update" ) - TP.ProfileBegin( "onTimeout tune" ) + TP.ProfileBegin( pref+"tune" ) if self.playSource == 'Tune': curtick = self.noteLooper.getCurrentTick(0,True, time.time()) curIdx = curtick / ( 4 * Constants.TICKS_PER_BEAT) #TODO if curIdx != self.tuneView.selectedPageIndex: self.tuneView.selectPage( curIdx ) - TP.ProfileEnd( "onTimeout tune" ) + TP.ProfileEnd( pref+"tune" ) return True |