diff plugin/DSSIPluginFactory.cpp @ 408:115f60df1e4d

* Speed up spectrogram painting by releasing mutex in FFTDataServer while calculating data prior to writing it, and by adding whole-column value query methods to FFT objects * Add paint cache to Thumbwheel -- repaints of this widget were slowing down the whole spectrogram repaint * More uses of MutexLocker (named and with debug) and more profile points * Make startup much quicker some of the time, with OSC server in place
author Chris Cannam
date Thu, 08 May 2008 14:46:22 +0000
parents 65311fb86166
children b4a8d8221eaf
line wrap: on
line diff
--- a/plugin/DSSIPluginFactory.cpp	Tue Apr 29 15:34:17 2008 +0000
+++ b/plugin/DSSIPluginFactory.cpp	Thu May 08 14:46:22 2008 +0000
@@ -28,6 +28,8 @@
 
 #include <cstdlib>
 
+#include "base/Profiler.h"
+
 //!!!
 #include "plugin/plugins/SamplePlayer.h"
 
@@ -56,6 +58,8 @@
 void
 DSSIPluginFactory::enumeratePlugins(std::vector<QString> &list)
 {
+    Profiler profiler("DSSIPluginFactory::enumeratePlugins");
+
     for (std::vector<QString>::iterator i = m_identifiers.begin();
 	 i != m_identifiers.end(); ++i) {
 
@@ -113,6 +117,8 @@
 				     unsigned int blockSize,
 				     unsigned int channels)
 {
+    Profiler profiler("DSSIPluginFactory::instantiatePlugin");
+
     const DSSI_Descriptor *descriptor = getDSSIDescriptor(identifier);
 
     if (descriptor) {
@@ -277,6 +283,8 @@
 void
 DSSIPluginFactory::discoverPlugins(QString soname)
 {
+    Profiler profiler("DSSIPluginFactory::discoverPlugins");
+
     // Note that soname is expected to be a full path at this point,
     // of a file that is known to exist