[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - comphelper/source
Tor Lillqvist (via logerrit)
logerrit at kemper.freedesktop.org
Thu Apr 15 15:57:49 UTC 2021
comphelper/source/misc/profilezone.cxx | 5 -----
1 file changed, 5 deletions(-)
New commits:
commit aafdbf9a642666a7b7f9c9e8b4f37f8ccd35fb8a
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Thu Apr 15 17:51:02 2021 +0300
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Thu Apr 15 17:57:14 2021 +0200
Drop the leftover "sum time" thing from the Event Trace
Change-Id: I222da50f3ad113bf3204b4d21df52c9e55cf7cf0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114159
Tested-by: Tor Lillqvist <tml at collabora.com>
Reviewed-by: Tor Lillqvist <tml at collabora.com>
diff --git a/comphelper/source/misc/profilezone.cxx b/comphelper/source/misc/profilezone.cxx
index dcca53e211eb..103714b3be2d 100644
--- a/comphelper/source/misc/profilezone.cxx
+++ b/comphelper/source/misc/profilezone.cxx
@@ -26,7 +26,6 @@ int ProfileZone::s_nNesting = 0; // level of overlapped zones
namespace
{
std::vector<OUString> g_aRecording; // recorded data
- long long g_nSumTime(0); // overall zone time in microsec
long long g_nStartTime; // start time of recording
::osl::Mutex g_aMutex;
}
@@ -66,8 +65,6 @@ void ProfileZone::addRecording()
::osl::MutexGuard aGuard(g_aMutex);
g_aRecording.emplace_back(sRecordingData);
- if (s_nNesting == 0)
- g_nSumTime += nNow - m_nCreateTime;
}
css::uno::Sequence<OUString> ProfileZone::getRecordingAndClear()
@@ -79,8 +76,6 @@ css::uno::Sequence<OUString> ProfileZone::getRecordingAndClear()
bRecording = s_bRecording;
stopRecording();
aRecording.swap(g_aRecording);
- long long nSumTime = g_nSumTime;
- aRecording.insert(aRecording.begin(), OUString::number(nSumTime/1000000.0));
}
// reset start time and nesting level
if (bRecording)
More information about the Libreoffice-commits
mailing list