X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fdebug%2Fprofilingscope.h;h=586efa31d53fbf062a175ae7a44fb1e31897ac3f;hp=4e4294e0269d04346c04e1c364d75f870fb231ee;hb=HEAD;hpb=c3e242c2629cbc9645258b30aaf07b7285d4372b diff --git a/source/debug/profilingscope.h b/source/debug/profilingscope.h index 4e4294e..7b8bcf3 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 #include "profiler.h" @@ -13,18 +14,16 @@ 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: private NonCopyable +class MSPCORE_API ProfilingScope: private NonCopyable { private: Profiler &profiler; std::string name; - ProfilingScope *parent; + ProfilingScope *parent = nullptr; Time::TimeStamp entry_time; Time::TimeDelta time_spent; Time::TimeDelta child_time; - ProfilingScope(const ProfilingScope &); - ProfilingScope &operator=(const ProfilingScope &); public: ProfilingScope(Profiler &p, const std::string &n); ~ProfilingScope();