From 8c80d6f7196ab8cd63c42f6a57b458fdc47fc203 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 15 Apr 2021 14:31:40 +0300 Subject: Refactor ProfileZone and create Chrome Trace Event Format data Instead of separate B ("begin") and E ("end") duration events, generate X ("complete") events. Only the event JSON objects are generated, not the surrounding array or object. See https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview#heading=h.lc5airzennvk Online now needs work so that the events are written out to a separate file instead of being in the common log file. Change-Id: Ie9363b4cfda862a70e1928ed16350e50a6fee9a5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114142 Tested-by: Tor Lillqvist Reviewed-by: Michael Meeks Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114556 Tested-by: Jenkins CollaboraOffice Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114653 Tested-by: Jenkins Reviewed-by: Tor Lillqvist --- desktop/source/lib/init.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop/source') diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index d2a7b1351a35..23400d906628 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -6077,7 +6077,7 @@ public: virtual void Invoke() override { const css::uno::Sequence aEvents = - comphelper::ProfileRecording::getRecordingAndClear(); + comphelper::ProfileZone::getRecordingAndClear(); OStringBuffer aOutput; for (const auto &s : aEvents) { @@ -6159,7 +6159,7 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char // Turn profile zones on early if (bProfileZones && eStage == SECOND_INIT) { - comphelper::ProfileRecording::startRecording(); + comphelper::ProfileZone::startRecording(); new ProfileZoneDumper(); } -- cgit