diff options
author | Tor Lillqvist <tml@collabora.com> | 2021-04-27 11:14:07 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2021-04-29 10:37:41 +0200 |
commit | 2f5c9ab2c95c6489121206a56da7e76d6fc745d8 (patch) | |
tree | 68f3624bf36170daff78603a7352e7d42b04df16 /comphelper | |
parent | 3ed51f7b24eac38e4263da8d5bfa10ab6e6d3161 (diff) |
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/+/114794
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/traceevent.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
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(); |