mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
scope engine dsp timing to input metering
This commit is contained in:
parent
6884a09b7b
commit
a2a3ae5ea6
3 changed files with 10 additions and 1 deletions
|
|
@ -250,6 +250,8 @@ class LIBARDOUR_API AudioEngine : public PortManager, public SessionHandlePtr
|
||||||
void add_pending_port_deletion (Port*);
|
void add_pending_port_deletion (Port*);
|
||||||
void queue_latency_update (bool);
|
void queue_latency_update (bool);
|
||||||
|
|
||||||
|
PBD::TimingStats dsp_stats;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
AudioEngine ();
|
AudioEngine ();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -489,8 +489,12 @@ AudioEngine::process_callback (pframes_t nframes)
|
||||||
|
|
||||||
/* tell all Ports that we're starting a new cycle */
|
/* tell all Ports that we're starting a new cycle */
|
||||||
|
|
||||||
PortManager::cycle_start (nframes, _session);
|
{
|
||||||
|
PBD::TimerRAII tr (dsp_stats);
|
||||||
|
|
||||||
|
|
||||||
|
PortManager::cycle_start (nframes, _session);
|
||||||
|
}
|
||||||
/* test if we are freewheeling and there are freewheel signals connected.
|
/* test if we are freewheeling and there are freewheel signals connected.
|
||||||
* ardour should act normally even when freewheeling unless /it/ is
|
* ardour should act normally even when freewheeling unless /it/ is
|
||||||
* exporting (which is what Freewheel.empty() tests for).
|
* exporting (which is what Freewheel.empty() tests for).
|
||||||
|
|
|
||||||
|
|
@ -7254,6 +7254,9 @@ Session::get_dsp_stats () const
|
||||||
double avg;
|
double avg;
|
||||||
double dev;
|
double dev;
|
||||||
|
|
||||||
|
AudioEngine::instance()->dsp_stats.get_stats (min, max, avg, dev);
|
||||||
|
ss << "Engine: " << min << ' ' << max << ' ' << avg << ' ' << dev << endl;
|
||||||
|
|
||||||
dsp_stats.get_stats (min, max, avg, dev);
|
dsp_stats.get_stats (min, max, avg, dev);
|
||||||
ss << "Session: " << min << ' ' << max << ' ' << avg << ' ' << dev << endl;
|
ss << "Session: " << min << ' ' << max << ' ' << avg << ' ' << dev << endl;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue