diff data/model/FFTModel.cpp @ 183:146eb9e35baa

* Improve output from Profiler class and make it incur less (no) overhead in release builds with NO_TIMING defined * Fix a lock contention issue in spectrogram * Marginal optimisations elsewhere
author Chris Cannam
date Tue, 10 Oct 2006 14:51:17 +0000
parents f75f8a1cd7b1
children 2f2d282d45d0
line wrap: on
line diff
--- a/data/model/FFTModel.cpp	Mon Oct 09 10:49:46 2006 +0000
+++ b/data/model/FFTModel.cpp	Tue Oct 10 14:51:17 2006 +0000
@@ -16,6 +16,8 @@
 #include "FFTModel.h"
 #include "DenseTimeValueModel.h"
 
+#include "base/Profiler.h"
+
 #include <cassert>
 
 FFTModel::FFTModel(const DenseTimeValueModel *model,
@@ -81,6 +83,8 @@
 void
 FFTModel::getColumn(size_t x, Column &result) const
 {
+    Profiler profiler("FFTModel::getColumn", false);
+
     result.clear();
     size_t height(getHeight());
     for (size_t y = 0; y < height; ++y) {