summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/Multicaster.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-05-19 21:18:52 +0000
committerAlan Conway <aconway@apache.org>2009-05-19 21:18:52 +0000
commit285ca60cf814ce4b96813e929ced910d53097aef (patch)
tree347254ab8c4b2c27d6a095ccdac7ed444ed993b0 /cpp/src/qpid/cluster/Multicaster.h
parentfe0a36ba0edb47757a7bc7331764631ebd20205e (diff)
downloadqpid-python-285ca60cf814ce4b96813e929ced910d53097aef.tar.gz
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
Diffstat (limited to 'cpp/src/qpid/cluster/Multicaster.h')
-rw-r--r--cpp/src/qpid/cluster/Multicaster.h3
1 files changed, 3 insertions, 0 deletions
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 <boost/shared_ptr.hpp>
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<Event> PollableEventQueue;
typedef std::deque<Event> PlainEventQueue;