]> git.tdb.fi Git - libs/core.git/blobdiff - source/debug/profilingscope.h
Use vectors for storage in Poller
[libs/core.git] / source / debug / profilingscope.h
index 107688886a931db5891049551e6aa1ddc2c2ecba..4e4294e0269d04346c04e1c364d75f870fb231ee 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef MSP_DEBUG_PROFILINGSCOPE_H_
 #define MSP_DEBUG_PROFILINGSCOPE_H_
 
+#include <msp/core/noncopyable.h>
 #include <msp/time/timestamp.h>
 #include "profiler.h"
 
@@ -12,7 +13,7 @@ RAII timing class to accompany Profiler.  Timing starts when an object is
 created and ends when it goes out of scope.  If there was another object in an
 outer scope, it is notified of the time used in inner scopes.
 */
-class ProfilingScope
+class ProfilingScope: private NonCopyable
 {
 private:
        Profiler &profiler;