Mercurial > hg > svcore
diff base/StorageAdviser.cpp @ 1098:329ddaf7415d simple-fft-model
Store temporary audio files in memory if we have plenty of it
author | Chris Cannam |
---|---|
date | Mon, 15 Jun 2015 14:35:37 +0100 |
parents | cc27f35aa75c |
children | e86a7ea3dc38 |
line wrap: on
line diff
--- a/base/StorageAdviser.cpp Mon Jun 15 12:38:50 2015 +0100 +++ b/base/StorageAdviser.cpp Mon Jun 15 14:35:37 2015 +0100 @@ -22,7 +22,7 @@ #include <iostream> -//#define DEBUG_STORAGE_ADVISER 1 +#define DEBUG_STORAGE_ADVISER 1 size_t StorageAdviser::m_discPlanned = 0; size_t StorageAdviser::m_memoryPlanned = 0; @@ -36,9 +36,9 @@ size_t maximumSize) { #ifdef DEBUG_STORAGE_ADVISER - SVDEBUG << "StorageAdviser::recommend: Criteria " << criteria - << ", minimumSize " << minimumSize - << ", maximumSize " << maximumSize << endl; + cerr << "StorageAdviser::recommend: Criteria " << criteria + << ", minimumSize " << minimumSize + << ", maximumSize " << maximumSize << endl; #endif if (m_baseRecommendation != NoRecommendation) { @@ -181,6 +181,10 @@ } } +#ifdef DEBUG_STORAGE_ADVISER + cerr << "StorageAdviser: returning recommendation " << recommendation << endl; +#endif + return Recommendation(recommendation); }