comphelper: add a profiling API

Desktop / LibreOffice - László Németh [collabora.com] - 15 June 2017 10:10 EDT

Using the guard style ProfileZone aZone("foo").

Test macro:

Sub TimeLog toolkit = createUnoService("com.sun.star.awt.Toolkit") toolkit.startRecording() toolkit.processEventsToIdle() toolkit.stopRecording() a = toolkit.getRecordingAndClear() s = "" For Each i in a s = s + i + ", " Next i Print s End Sub

Change-Id: Iceaf9143d0387c87e7936dc67eecbbf71ee8d74a Reviewed-on: https://gerrit.libreoffice.org/38786

8141379 comphelper: add a profiling API
comphelper/Library_comphelper.mk | 1 +
comphelper/source/misc/profilezone.cxx | 105 +++++++++++++++++++++++
include/comphelper/profilezone.hxx | 51 +++++++++++
offapi/com/sun/star/awt/XToolkitExperimental.idl | 22 +++++
toolkit/source/awt/vclxtoolkit.cxx | 23 +++++
5 files changed, 202 insertions(+)

Upstream: cgit.freedesktop.org


  • Share