From 285ca60cf814ce4b96813e929ced910d53097aef Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 19 May 2009 21:18:52 +0000 Subject: Instrumentation for measuring latencies. Compiled out of normal builds, enable with -DQPID_LATENCY_TRACKER. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@776463 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/Multicaster.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cpp/src/qpid/cluster/Multicaster.h') diff --git a/cpp/src/qpid/cluster/Multicaster.h b/cpp/src/qpid/cluster/Multicaster.h index baa5b87f38..e1014fa499 100644 --- a/cpp/src/qpid/cluster/Multicaster.h +++ b/cpp/src/qpid/cluster/Multicaster.h @@ -26,6 +26,7 @@ #include "Event.h" #include "qpid/sys/PollableQueue.h" #include "qpid/sys/Mutex.h" +#include "qpid/sys/LatencyTracker.h" #include namespace qpid { @@ -56,6 +57,8 @@ class Multicaster /** End holding mode, held events are mcast */ void release(); + LATENCY_TRACK(sys::LatencyCounter cpgLatency;) + private: typedef sys::PollableQueue PollableEventQueue; typedef std::deque PlainEventQueue; -- cgit v1.2.1