summaryrefslogtreecommitdiff
path: root/libs/ardour/session_process.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/session_process.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/session_process.cc')
-rw-r--r--libs/ardour/session_process.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/ardour/session_process.cc b/libs/ardour/session_process.cc
index 4876dc7931..80f922117d 100644
--- a/libs/ardour/session_process.cc
+++ b/libs/ardour/session_process.cc
@@ -39,6 +39,7 @@
#include "ardour/graph.h"
#include "ardour/audio_port.h"
#include "ardour/tempo.h"
+#include "ardour/cycle_timer.h"
#include "midi++/manager.h"
#include "midi++/mmc.h"
@@ -103,6 +104,8 @@ Session::fail_roll (pframes_t nframes)
int
Session::no_roll (pframes_t nframes)
{
+ PT_TIMING_CHECK (4);
+
framepos_t end_frame = _transport_frame + nframes; // FIXME: varispeed + no_roll ??
int ret = 0;
bool declick = get_transport_declick_required();
@@ -112,10 +115,11 @@ Session::no_roll (pframes_t nframes)
_click_io->silence (nframes);
}
- if (_process_graph->threads_in_use() > 0) {
+ if (1 || _process_graph->threads_in_use() > 0) {
DEBUG_TRACE(DEBUG::ProcessThreads,"calling graph/no-roll\n");
_process_graph->routes_no_roll( nframes, _transport_frame, end_frame, non_realtime_work_pending(), declick);
} else {
+ PT_TIMING_CHECK (10);
for (RouteList::iterator i = r->begin(); i != r->end(); ++i) {
if ((*i)->is_hidden()) {
@@ -130,8 +134,10 @@ Session::no_roll (pframes_t nframes)
break;
}
}
+ PT_TIMING_CHECK (11);
}
+ PT_TIMING_CHECK (5);
return ret;
}
@@ -242,6 +248,8 @@ Session::get_track_statistics ()
void
Session::process_with_events (pframes_t nframes)
{
+ PT_TIMING_CHECK (3);
+
SessionEvent* ev;
pframes_t this_nframes;
framepos_t end_frame;