summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-07-17 14:04:31 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2017-09-18 11:40:53 -0400
commit3d183dc462a82c5ee0b4fb77a226f0e49d9736f7 (patch)
tree862131c47cd8074ece13a00d579004fd65684066 /libs
parente6576e29349da39c01064318b5672b4583178ba4 (diff)
debug instrumentation for locate time
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/session_transport.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc
index 4a81e0e798..869b35a0a0 100644
--- a/libs/ardour/session_transport.cc
+++ b/libs/ardour/session_transport.cc
@@ -582,6 +582,8 @@ Session::non_realtime_locate ()
}
+ microseconds_t begin = get_microseconds ();
+
{
boost::shared_ptr<RouteList> rl = routes.reader();
@@ -603,6 +605,7 @@ Session::non_realtime_locate ()
cerr << "\n\n <<< DONE Non-RT locate on routes\n\n";
}
+
{
VCAList v = _vca_manager->vcas ();
for (VCAList::const_iterator i = v.begin(); i != v.end(); ++i) {
@@ -610,6 +613,9 @@ Session::non_realtime_locate ()
}
}
+ microseconds_t end = get_microseconds ();
+ cerr << "Locate took " << setprecision (3) << ((end - begin) /1000000.0) << " secs\n";
+
_scene_changer->locate (_transport_frame);
/* XXX: it would be nice to generate the new clicks here (in the non-RT thread)