]> git.tdb.fi Git - libs/core.git/blobdiff - source/debug/profiler.h
Add decorations for things which are considered part of the API
[libs/core.git] / source / debug / profiler.h
index 22d2c9a82c9fcb7df8545d16e7545d9ebb0720a3..7d98dc7556e7316fe3e69257877a4ba8c8c6a018 100644 (file)
@@ -4,6 +4,7 @@
 #include <map>
 #include <string>
 #include <vector>
+#include <msp/core/mspcore_api.h>
 #include <msp/core/noncopyable.h>
 #include <msp/time/timedelta.h>
 #include <msp/time/timestamp.h>
@@ -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;