From 6038c9125bcb9f6d5dc2b998f2bef476ba1b1f98 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 11 May 2021 13:58:38 +0300 Subject: Add the possibility to include a set of arguments in Trace Events Change-Id: I55720baf64bd9b719026c94e4373b6368a1a7106 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116847 Tested-by: Tor Lillqvist Reviewed-by: Tor Lillqvist --- include/comphelper/profilezone.hxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'include/comphelper/profilezone.hxx') diff --git a/include/comphelper/profilezone.hxx b/include/comphelper/profilezone.hxx index 3431c20efcea..babd11f5b93b 100644 --- a/include/comphelper/profilezone.hxx +++ b/include/comphelper/profilezone.hxx @@ -27,7 +27,6 @@ class COMPHELPER_DLLPUBLIC ProfileZone : public NamedEvent long long m_nCreateTime; bool m_bConsole; void stopConsole(); - int m_nPid; int m_nNesting; void addRecording(); @@ -48,10 +47,10 @@ public: * Similar to the DEBUG macro in sal/log.hxx, don't forget to remove these lines before * committing. */ - ProfileZone(const char* sName, bool bConsole = false) - : NamedEvent(sName) + ProfileZone(const char* sName, bool bConsole = false, + const std::map& args = std::map()) + : NamedEvent(sName, args) , m_bConsole(bConsole) - , m_nPid(-1) , m_nNesting(-1) { if (s_bRecording || m_bConsole) @@ -61,8 +60,6 @@ public: m_nCreateTime = static_cast(systemTime.Seconds) * 1000000 + systemTime.Nanosec / 1000; - m_nPid = getPid(); - m_nNesting = s_nNesting++; } else -- cgit