Mercurial > hg > svcore
changeset 192:900ac6667eab
...
author | Chris Cannam |
---|---|
date | Tue, 17 Oct 2006 18:54:04 +0000 |
parents | 86766fef5467 |
children | bf1f256864de |
files | base/StorageAdviser.cpp data/fileio/CodedAudioFileReader.cpp |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/base/StorageAdviser.cpp Tue Oct 17 13:49:31 2006 +0000 +++ b/base/StorageAdviser.cpp Tue Oct 17 18:54:04 2006 +0000 @@ -38,6 +38,11 @@ std::cerr << "Disc space: " << discFree << ", memory free: " << memoryFree << ", memory total: " << memoryTotal << std::endl; + //!!! We have a potentially serious problem here if multiple + //recommendations are made in advance of any of the resulting + //allocations, as the allocations that have been recommended for + //won't be taken into account in subsequent recommendations. + enum StorageStatus { Unknown, Insufficient,
--- a/data/fileio/CodedAudioFileReader.cpp Tue Oct 17 13:49:31 2006 +0000 +++ b/data/fileio/CodedAudioFileReader.cpp Tue Oct 17 18:54:04 2006 +0000 @@ -18,6 +18,7 @@ #include "WavFileReader.h" #include "base/TempDirectory.h" #include "base/Exceptions.h" +#include "base/Profiler.h" #include <iostream> #include <QDir> @@ -116,6 +117,8 @@ void CodedAudioFileReader::finishDecodeCache() { + Profiler profiler("CodedAudioFileReader::finishDecodeCache", true); + if (!m_initialised) { std::cerr << "WARNING: CodedAudioFileReader::finishDecodeCache: Cache was never initialised!" << std::endl; return;