changeset 158:9c3a4b42d8f8

...
author Chris Cannam
date Thu, 05 Oct 2006 15:39:23 +0000
parents e68cc314deb7
children c1fb771b7646
files layer/SpectrogramLayer.cpp
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp	Thu Oct 05 14:34:49 2006 +0000
+++ b/layer/SpectrogramLayer.cpp	Thu Oct 05 15:39:23 2006 +0000
@@ -1655,7 +1655,7 @@
 	v->setLightBackground(false);
     }
 
-    Profiler profiler("SpectrogramLayer::paint", true);
+//    Profiler profiler("SpectrogramLayer::paint", true);
 #ifdef DEBUG_SPECTROGRAM_REPAINT
     std::cerr << "SpectrogramLayer::paint(): m_model is " << m_model << ", zoom level is " << v->getZoomLevel() << ", m_updateTimer " << m_updateTimer << std::endl;
     
@@ -2097,7 +2097,7 @@
         std::cerr << "Overall mag unchanged at [" << m_viewMags[v].getMin() << "->" << m_viewMags[v].getMax() << "]" << std::endl;
     }
 
-    Profiler profiler2("SpectrogramLayer::paint: draw image", true);
+//    Profiler profiler2("SpectrogramLayer::paint: draw image", true);
 
     paint.drawImage(x0, y0, m_drawBuffer, 0, 0, w, h);
 
@@ -2116,7 +2116,8 @@
 
         if (cache.validArea.x() > 0) {
 #ifdef DEBUG_SPECTROGRAM_REPAINT
-            std::cerr << "SpectrogramLayer::paint() updating left" << std::endl;
+            std::cerr << "SpectrogramLayer::paint() updating left (0, "
+                      << cache.validArea.x() << ")" << std::endl;
 #endif
             v->update(0, 0, cache.validArea.x(), v->height());
         }
@@ -2520,7 +2521,7 @@
 	return;
     }
 
-    Profiler profiler("SpectrogramLayer::paintVerticalScale", true);
+//    Profiler profiler("SpectrogramLayer::paintVerticalScale", true);
 
     //!!! cache this?