diff options
author | Alan Conway <aconway@apache.org> | 2009-01-20 22:11:37 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-01-20 22:11:37 +0000 |
commit | 066fd1ab9f1840cfe09204bc5f3d550f1e12d49b (patch) | |
tree | 51c9961e79c811c3240710bd7b7435a73e11c2b7 /cpp/src/qpid/cluster/Cluster.cpp | |
parent | 861692abf515cf136e86e70446d005e7849a0f87 (diff) | |
download | qpid-python-066fd1ab9f1840cfe09204bc5f3d550f1e12d49b.tar.gz |
Latency measurements, compiled out of production code.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@736135 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Cluster.cpp')
-rw-r--r-- | cpp/src/qpid/cluster/Cluster.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/Cluster.cpp b/cpp/src/qpid/cluster/Cluster.cpp index 18b4a2e69c..0b6d56c259 100644 --- a/cpp/src/qpid/cluster/Cluster.cpp +++ b/cpp/src/qpid/cluster/Cluster.cpp @@ -38,6 +38,7 @@ #include "qpid/log/Statement.h" #include "qpid/log/Helpers.h" #include "qpid/sys/Thread.h" +#include "qpid/sys/LatencyMetric.h" #include "qpid/memory.h" #include "qpid/shared_ptr.h" #include "qmf/org/apache/qpid/cluster/Package.h" @@ -182,7 +183,7 @@ void Cluster::deliver( MemberId from(nodeid, pid); framing::Buffer buf(static_cast<char*>(msg), msg_len); Event e(Event::decodeCopy(from, buf)); - if (from == myId) // Record self-deliveries for flow control. + if (from == myId) // Record self-deliveries for flow control. mcast.selfDeliver(e); deliver(e, l); } @@ -206,6 +207,7 @@ void Cluster::delivered(PollableEventQueue::Queue& events) { } void Cluster::deliveredEvent(const EventHeader& e, const char* data) { + QPID_LATENCY_RECORD("deliver queue", e); Buffer buf(const_cast<char*>(data), e.getSize()); AMQFrame frame; if (e.isCluster()) { |