diff options
author | Tor Lillqvist <tml@collabora.com> | 2021-05-11 13:58:38 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2021-06-09 13:49:31 +0200 |
commit | 6038c9125bcb9f6d5dc2b998f2bef476ba1b1f98 (patch) | |
tree | be725a15fd8d484ee2f0c25702a9f638dafeaa01 /include/comphelper/profilezone.hxx | |
parent | e4f5705b91ecacdfc84e564e116dfe812fd96b61 (diff) |
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 <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'include/comphelper/profilezone.hxx')
-rw-r--r-- | include/comphelper/profilezone.hxx | 9 |
1 files changed, 3 insertions, 6 deletions
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<OUString, OUString>& args = std::map<OUString, OUString>()) + : 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<long long>(systemTime.Seconds) * 1000000 + systemTime.Nanosec / 1000; - m_nPid = getPid(); - m_nNesting = s_nNesting++; } else |