summaryrefslogtreecommitdiff
path: root/offapi/com
diff options
context:
space:
mode:
authorLászló Németh <laszlo.nemeth@collabora.com>2017-03-28 16:32:25 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-06-15 16:10:09 +0200
commit81413799eb4f38d62710b295268249307364000a (patch)
tree6468fba4268090a7623b10cd655cd41d43188e3d /offapi/com
parent9863be5254fcce6b74da30b821e9263002e9ac71 (diff)
comphelper: add a profiling API
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 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'offapi/com')
-rw-r--r--offapi/com/sun/star/awt/XToolkitExperimental.idl22
1 files changed, 22 insertions, 0 deletions
diff --git a/offapi/com/sun/star/awt/XToolkitExperimental.idl b/offapi/com/sun/star/awt/XToolkitExperimental.idl
index 5764ef5fc44f..958c80c1cb9b 100644
--- a/offapi/com/sun/star/awt/XToolkitExperimental.idl
+++ b/offapi/com/sun/star/awt/XToolkitExperimental.idl
@@ -34,6 +34,28 @@ interface XToolkitExperimental : XToolkit2
/** Pause the main thread of LibreOffice for the requested amount of time.
*/
void pause([in] long nMilliseconds);
+
+ /** Start time logging.
+
+ @since LibreOffice 6.0
+ */
+ void startRecording();
+
+ /** Stop time logging.
+
+ @since LibreOffice 6.0
+ */
+ void stopRecording();
+
+ /** Query time logs and clear recording.
+ First line is the time of the recorded operations in seconds,
+ next ones are the log lines. A log line contains the thread ID,
+ time stamp, profile zone ID and "start" or "stop".
+
+ @since LibreOffice 6.0
+ */
+ sequence<string> getRecordingAndClear();
+
};
}; }; }; };