summaryrefslogtreecommitdiffstats
path: root/src/include/debug-profiler.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-06-18 22:59:25 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-07-10 17:59:48 +0900
commit5161d40d204dc6dbd9c34b5be0052243240f15b1 (patch)
tree5ccc61290c25f3c1f18a1e821ea59f90df97518e /src/include/debug-profiler.h
parente46a8b8db6082f7d5e293407d654f127c48a0256 (diff)
downloadtderadio-5161d40d.tar.gz
tderadio-5161d40d.zip
CMake conversion.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit bc7518bdba609f90ee89de8b4e7ddaa1e567b1a8)
Diffstat (limited to 'src/include/debug-profiler.h')
-rw-r--r--src/include/debug-profiler.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/include/debug-profiler.h b/src/include/debug-profiler.h
index 7ceb50d..1e46111 100644
--- a/src/include/debug-profiler.h
+++ b/src/include/debug-profiler.h
@@ -24,6 +24,7 @@
#include <tqstring.h>
#include <tqmap.h>
+#include <kdemacros.h>
#if (defined __i386__) || (defined __x86_64__)
static __inline__ unsigned long long int rdtsc()
@@ -39,7 +40,7 @@ static __inline__ unsigned long long int rdtsc()
}
#endif
-class Profiler
+class KDE_EXPORT Profiler
{
public:
Profiler();
@@ -76,14 +77,14 @@ protected:
};
-class TimeProfiler : public Profiler
+class KDE_EXPORT TimeProfiler : public Profiler
{
protected:
long long getCounter() const { return rdtsc(); }
};
-class MemProfiler : public Profiler
+class KDE_EXPORT MemProfiler : public Profiler
{
protected:
long long getCounter() const;
@@ -95,7 +96,7 @@ extern MemProfiler global_mem_profiler;
-class BlockProfiler
+class KDE_EXPORT BlockProfiler
{
public:
BlockProfiler(const TQString &descr);