From d57ac8ff9c0b4ec8706d1d64c4a0ee9eb23de66c Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 27 Apr 2021 11:14:07 +0300 Subject: Make the console logging in ProfileZone work more sanely Do not re-assing a value to the m_nCreateTime if bConsole is true. Just use the same code that sets it in the constructor as in the case when recording is on. Change-Id: I1ca3c5aa00e2f8f0faa7ca3433e1eb066413c2a2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114734 Tested-by: Tor Lillqvist Reviewed-by: Tor Lillqvist --- comphelper/source/misc/traceevent.cxx | 2 -- 1 file changed, 2 deletions(-) (limited to 'comphelper') diff --git a/comphelper/source/misc/traceevent.cxx b/comphelper/source/misc/traceevent.cxx index 6e86c3f03993..325ba59b131d 100644 --- a/comphelper/source/misc/traceevent.cxx +++ b/comphelper/source/misc/traceevent.cxx @@ -120,8 +120,6 @@ void ProfileZone::addRecording() + OUString::number(osl_getThreadIdentifier(nullptr)) + "},"); } -void ProfileZone::startConsole() { m_nCreateTime = osl_getGlobalTimer(); } - void ProfileZone::stopConsole() { sal_uInt32 nEndTime = osl_getGlobalTimer(); -- cgit