X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdebug%2Fprofilingscope.h;h=50b84ff2b3fe7992fcb0e1af51aac3b534a268ed;hb=122846f0881673770d88eff7d925ecf25c01b62e;hp=107688886a931db5891049551e6aa1ddc2c2ecba;hpb=27efc167cb10ee03c1d2a6711dd149d1093179c8;p=libs%2Fcore.git diff --git a/source/debug/profilingscope.h b/source/debug/profilingscope.h index 1076888..50b84ff 100644 --- a/source/debug/profilingscope.h +++ b/source/debug/profilingscope.h @@ -1,6 +1,7 @@ #ifndef MSP_DEBUG_PROFILINGSCOPE_H_ #define MSP_DEBUG_PROFILINGSCOPE_H_ +#include #include #include "profiler.h" @@ -12,12 +13,12 @@ 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; std::string name; - ProfilingScope *parent; + ProfilingScope *parent = 0; Time::TimeStamp entry_time; Time::TimeDelta time_spent; Time::TimeDelta child_time;