summaryrefslogtreecommitdiff
path: root/libs/ardour/audioengine.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-01-14 22:02:59 +0000
committerCarl Hetherington <carl@carlh.net>2012-01-14 22:02:59 +0000
commitb087721d8aaf9470833414d01a72d826162946ab (patch)
treedc700fbb71685ab54eaa70b03ab53f35120f6155 /libs/ardour/audioengine.cc
parentd4bab8aeed61d7de331d5fb10230de78edfd423b (diff)
Add some debug code to time things in the process
thread(s). git-svn-id: svn://localhost/ardour2/branches/3.0@11246 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audioengine.cc')
-rw-r--r--libs/ardour/audioengine.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc
index 34a79c35f8..06a1637382 100644
--- a/libs/ardour/audioengine.cc
+++ b/libs/ardour/audioengine.cc
@@ -446,9 +446,11 @@ int
AudioEngine::process_callback (pframes_t nframes)
{
GET_PRIVATE_JACK_POINTER_RET(_jack,0);
- // CycleTimer ct ("AudioEngine::process");
Glib::Mutex::Lock tm (_process_lock, Glib::TRY_LOCK);
+ PT_TIMING_REF;
+ PT_TIMING_CHECK (1);
+
/// The number of frames that will have been processed when we've finished
pframes_t next_processed_frames;
@@ -504,7 +506,6 @@ AudioEngine::process_callback (pframes_t nframes)
} else {
if (_session) {
_session->process (nframes);
-
}
}
@@ -555,6 +556,9 @@ AudioEngine::process_callback (pframes_t nframes)
}
_processed_frames = next_processed_frames;
+
+ PT_TIMING_CHECK (2);
+
return 0;
}