summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2021-04-15 17:51:02 +0300
committerTor Lillqvist <tml@collabora.com>2021-04-27 12:38:06 +0200
commitccc4d32417e0683e653c315c0e695e7ccb99f1a9 (patch)
tree69affcadfc68bcf59f93e551741040d091ce5558 /comphelper
parent8c80d6f7196ab8cd63c42f6a57b458fdc47fc203 (diff)
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@collabora.com> Reviewed-by: Tor Lillqvist <tml@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114557 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114654 Tested-by: Jenkins
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/profilezone.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/comphelper/source/misc/profilezone.cxx b/comphelper/source/misc/profilezone.cxx
index 3b80f69af38c..996213b5112a 100644
--- a/comphelper/source/misc/profilezone.cxx
+++ b/comphelper/source/misc/profilezone.cxx
@@ -28,7 +28,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;
}
@@ -68,8 +67,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()
@@ -81,8 +78,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)