diff options
author | Alan Conway <aconway@apache.org> | 2009-01-21 15:44:42 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-01-21 15:44:42 +0000 |
commit | 6d93918e12caf0fdc736219598076a80c91ae5fd (patch) | |
tree | c073e73e1ad9aa9923a16a9b6adf6d72f9239d55 /cpp/src/qpid/cluster/Connection.cpp | |
parent | a8b5a59f4ab5a7d080a76f5953d848c5c0d6e324 (diff) | |
download | qpid-python-6d93918e12caf0fdc736219598076a80c91ae5fd.tar.gz |
Additional latency measurement points.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@736326 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Connection.cpp')
-rw-r--r-- | cpp/src/qpid/cluster/Connection.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/Connection.cpp b/cpp/src/qpid/cluster/Connection.cpp index f0d38bf299..cdee87dfcd 100644 --- a/cpp/src/qpid/cluster/Connection.cpp +++ b/cpp/src/qpid/cluster/Connection.cpp @@ -39,6 +39,7 @@ #include "qpid/framing/ConnectionCloseBody.h" #include "qpid/framing/ConnectionCloseOkBody.h" #include "qpid/log/Statement.h" +#include "qpid/sys/LatencyMetric.h" #include <boost/current_function.hpp> @@ -73,7 +74,7 @@ Connection::Connection(Cluster& c, sys::ConnectionOutputHandler& out, void Connection::init() { QPID_LOG(debug, cluster << " new connection: " << *this); - if (isLocal() && !isCatchUp()) { + if (isLocal() && !isCatchUp() && cluster.getReadMax()) { output.giveReadCredit(cluster.getReadMax()); } } @@ -137,6 +138,7 @@ bool Connection::checkUnsupported(const AMQBody& body) { // Delivered from cluster. void Connection::delivered(framing::AMQFrame& f) { QPID_LOG(trace, cluster << " RECV: " << *this << ": " << f); + QPID_LATENCY_INIT(f); assert(!catchUp); currentChannel = f.getChannel(); if (!framing::invoke(*this, *f.getBody()).wasHandled() // Connection contol. |