diff options
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 |