summaryrefslogtreecommitdiff
path: root/include/comphelper/profilezone.hxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2021-04-27 09:20:32 +0300
committerTor Lillqvist <tml@collabora.com>2021-04-28 11:41:19 +0200
commitf0b4eecdba71f8bce8466b580971cdeea7514c22 (patch)
treed0029d35ccd01811687bccaa2033aa04ccda1859 /include/comphelper/profilezone.hxx
parent9fa66a3de4d6d14f91af8064f0af510070f65567 (diff)
Extend the trace event API with instant events
Change-Id: I3a93c79f46ffc5768ddaf338789fe2daa225ef4d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114696 Tested-by: Tor Lillqvist <tml@collabora.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'include/comphelper/profilezone.hxx')
-rw-r--r--include/comphelper/profilezone.hxx13
1 files changed, 2 insertions, 11 deletions
diff --git a/include/comphelper/profilezone.hxx b/include/comphelper/profilezone.hxx
index 3988199cdf6b..529e3d411742 100644
--- a/include/comphelper/profilezone.hxx
+++ b/include/comphelper/profilezone.hxx
@@ -12,23 +12,14 @@
#include <sal/config.h>
-#include <atomic>
-
-#include <osl/process.h>
-#include <osl/time.h>
-#include <com/sun/star/uno/Sequence.h>
-#include <comphelper/comphelperdllapi.h>
-#include <rtl/ustring.hxx>
+#include <comphelper/traceevent.hxx>
// implementation of XToolkitExperimental profiling API
namespace comphelper
{
-class COMPHELPER_DLLPUBLIC ProfileZone
+class COMPHELPER_DLLPUBLIC ProfileZone : public TraceEvent
{
-private:
- static std::atomic<bool> s_bRecording; // true during recording
- static int s_nNesting;
const char* m_sProfileId;
long long m_nCreateTime;
bool m_bConsole;