diff base/Profiler.h @ 408:115f60df1e4d

* Speed up spectrogram painting by releasing mutex in FFTDataServer while calculating data prior to writing it, and by adding whole-column value query methods to FFT objects * Add paint cache to Thumbwheel -- repaints of this widget were slowing down the whole spectrogram repaint * More uses of MutexLocker (named and with debug) and more profile points * Make startup much quicker some of the time, with OSC server in place
author Chris Cannam
date Thu, 08 May 2008 14:46:22 +0000
parents 91fdc752e540
children 5a13b76cd034
line wrap: on
line diff
--- a/base/Profiler.h	Tue Apr 29 15:34:17 2008 +0000
+++ b/base/Profiler.h	Thu May 08 14:46:22 2008 +0000
@@ -98,12 +98,14 @@
     ~Profiler();
 
     void update() const;
+    void end(); // same action as dtor
 
 protected:
     const char* m_c;
     clock_t m_startCPU;
     RealTime m_startTime;
     bool m_showOnDestruct;
+    bool m_ended;
 };
 
 #else
@@ -111,10 +113,11 @@
 class Profiler
 {
 public:
-    Profiler(const char *, bool) { }
+    Profiler(const char *, bool = false) { }
     ~Profiler() { }
-    
-    void update() { }
+
+    void update() const { }
+    void end() { }
 };
 
 #endif