summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorLászló Németh <laszlo.nemeth@collabora.com>2017-03-30 14:25:40 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-06-16 14:01:56 +0200
commit08f6f9dded1b142b858c455da03319abac691655 (patch)
treec191e2f0535656b91b77aefb9c634c1fdd793853 /vcl
parent6ade80cf142664e78954c7544534e9436ceb90c7 (diff)
Profiling API: add ProfileZones
Change-Id: Ie5669bd75d9b4be047d98402cb69ac313ab618df Reviewed-on: https://gerrit.libreoffice.org/38787 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/scheduler.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/app/scheduler.cxx b/vcl/source/app/scheduler.cxx
index e5109bc71f1c..1c52ad170d28 100644
--- a/vcl/source/app/scheduler.cxx
+++ b/vcl/source/app/scheduler.cxx
@@ -22,6 +22,7 @@
#include <vcl/scheduler.hxx>
#include <saltimer.hxx>
#include <salinst.hxx>
+#include <comphelper/profilezone.hxx>
namespace {
const sal_uInt64 MaximumTimeoutMs = 1000 * 60; // 1 minute
@@ -153,6 +154,8 @@ bool Scheduler::ProcessTaskScheduling( bool bIdle )
if ( pMostUrgent )
{
+ ::comphelper::ProfileZone aZone( pMostUrgent->GetDebugName() );
+
SAL_INFO("vcl.schedule", "Invoke task " << pMostUrgent->GetDebugName());
pMostUrgent->mnUpdateTime = nTime;