summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2021-04-27 10:48:09 +0300
committerTor Lillqvist <tml@collabora.com>2021-04-28 13:44:15 +0200
commit843db78050bb44db2839c1bd7f765a5b258ba4da (patch)
treeadb3e37603e38c173be18018d5f8fd603587700a /desktop
parent2d867eff480c03ab125f4c0149dd73afee08db85 (diff)
Move some static functions from ProfileZone to TraceEvent where they belong
Change-Id: I35f3d5d8c0a69a224cf7d3a2decba9c8e13c7dc1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114698 Tested-by: Tor Lillqvist <tml@collabora.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index ecbd0f3f97e5..6ebe3a1ce686 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3852,9 +3852,9 @@ static void lo_setOption(LibreOfficeKit* /*pThis*/, const char *pOption, const c
if (strcmp(pOption, "profilezonerecording") == 0)
{
if (strcmp(pValue, "start") == 0)
- comphelper::ProfileZone::startRecording();
+ comphelper::TraceEvent::startRecording();
else if (strcmp(pValue, "stop") == 0)
- comphelper::ProfileZone::stopRecording();
+ comphelper::TraceEvent::stopRecording();
}
else if (strcmp(pOption, "sallogoverride") == 0)
{
@@ -6107,7 +6107,7 @@ public:
virtual void Invoke() override
{
const css::uno::Sequence<OUString> aEvents =
- comphelper::ProfileZone::getRecordingAndClear();
+ comphelper::TraceEvent::getRecordingAndClear();
OStringBuffer aOutput;
for (const auto &s : aEvents)
{
@@ -6189,7 +6189,7 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char
// Turn profile zones on early
if (bProfileZones && eStage == SECOND_INIT)
{
- comphelper::ProfileZone::startRecording();
+ comphelper::TraceEvent::startRecording();
new ProfileZoneDumper();
}