# HG changeset patch # User Chris Cannam # Date 1160062763 0 # Node ID 9c3a4b42d8f8ca472ea56f9036c0bf2f2bb80111 # Parent e68cc314deb797c1b2e7e80a78afec9b6cd1a52e ... diff -r e68cc314deb7 -r 9c3a4b42d8f8 layer/SpectrogramLayer.cpp --- 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?