X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdebug%2Fprofiler.h;h=7d98dc7556e7316fe3e69257877a4ba8c8c6a018;hb=6af098355f2b037a6f8084f9f6c741e462ffa614;hp=5018c7f2d654100b7a0de87901d1c0708f114eeb;hpb=122846f0881673770d88eff7d925ecf25c01b62e;p=libs%2Fcore.git diff --git a/source/debug/profiler.h b/source/debug/profiler.h index 5018c7f..7d98dc7 100644 --- a/source/debug/profiler.h +++ b/source/debug/profiler.h @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include @@ -25,16 +26,16 @@ profiled. Note: This is not thread-safe. To profile multiple threads, create a separate Profiler for each thread. */ -class Profiler: private NonCopyable +class MSPCORE_API Profiler: private NonCopyable { public: - struct CallInfo + struct MSPCORE_API CallInfo { Msp::Time::TimeStamp entry_time; Msp::Time::TimeDelta duration; }; - struct ScopeInfo + struct MSPCORE_API ScopeInfo { Time::TimeStamp first_call; unsigned calls = 0; @@ -51,7 +52,7 @@ public: private: unsigned period = 0; std::map scopes; - ProfilingScope *inner = 0; + ProfilingScope *inner = nullptr; public: /** Sets the averaging period for timing data, measured in calls. Previous