debug instrumentation for locate time
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 17 Jul 2017 18:04:31 +0000 (14:04 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 18 Sep 2017 15:40:53 +0000 (11:40 -0400)
libs/ardour/session_transport.cc

index 4a81e0e798a265238f3c9e81d3dd22dde1dbc7cf..869b35a0a0298d95d18b98d6062313e9663eadfb 100644 (file)
@@ -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)