From cc34e26ef7e74845e4af9e5c5d450c0b12a268e0 Mon Sep 17 00:00:00 2001 From: Runitai Linden Date: Mon, 22 Nov 2021 11:51:03 -0600 Subject: SL-16094 Add WorkQueue profile hooks --- indra/llcommon/workqueue.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'indra/llcommon/workqueue.h') diff --git a/indra/llcommon/workqueue.h b/indra/llcommon/workqueue.h index c25d787425..96574a18b9 100644 --- a/indra/llcommon/workqueue.h +++ b/indra/llcommon/workqueue.h @@ -260,6 +260,7 @@ namespace LL template bool runFor(const std::chrono::duration& timeslice) { + LL_PROFILE_ZONE_SCOPED; return runUntil(TimePoint::clock::now() + timeslice); } @@ -431,6 +432,7 @@ namespace LL bool WorkQueue::postTo(weak_t target, const TimePoint& time, CALLABLE&& callable, FOLLOWUP&& callback) { + LL_PROFILE_ZONE_SCOPED; // We're being asked to post to the WorkQueue at target. // target is a weak_ptr: have to lock it to check it. auto tptr = target.lock(); @@ -479,6 +481,7 @@ namespace LL template bool WorkQueue::postMaybe(weak_t target, const TimePoint& time, CALLABLE&& callable) { + LL_PROFILE_ZONE_SCOPED; // target is a weak_ptr: have to lock it to check it auto tptr = target.lock(); if (tptr) -- cgit v1.2.3