summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/OutputInterceptor.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-01-21 15:44:42 +0000
committerAlan Conway <aconway@apache.org>2009-01-21 15:44:42 +0000
commit6d93918e12caf0fdc736219598076a80c91ae5fd (patch)
treec073e73e1ad9aa9923a16a9b6adf6d72f9239d55 /cpp/src/qpid/cluster/OutputInterceptor.cpp
parenta8b5a59f4ab5a7d080a76f5953d848c5c0d6e324 (diff)
downloadqpid-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/OutputInterceptor.cpp')
-rw-r--r--cpp/src/qpid/cluster/OutputInterceptor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/OutputInterceptor.cpp b/cpp/src/qpid/cluster/OutputInterceptor.cpp
index 1565ef2efb..472fb2e6c0 100644
--- a/cpp/src/qpid/cluster/OutputInterceptor.cpp
+++ b/cpp/src/qpid/cluster/OutputInterceptor.cpp
@@ -46,6 +46,7 @@ void OutputInterceptor::send(framing::AMQFrame& f) {
}
if (!parent.isCatchUp())
sent += f.encodedSize();
+ QPID_LATENCY_RECORD("on write queue", f);
}
void OutputInterceptor::activateOutput() {
@@ -77,6 +78,7 @@ bool OutputInterceptor::doOutput() {
// which tranfers frames to the codec for writing.
//
void OutputInterceptor::deliverDoOutput(size_t requested) {
+ QPID_LATENCY_RECORD("deliver do-output", *this);
size_t buf = getBuffered();
if (parent.isLocal())
writeEstimate.delivered(requested, sent, buf); // Update the estimate.
@@ -101,7 +103,7 @@ void OutputInterceptor::deliverDoOutput(size_t requested) {
// Send a doOutput request if one is not already in flight.
void OutputInterceptor::sendDoOutput() {
if (!parent.isLocal()) return;
-
+ QPID_LATENCY_INIT(*this);
doingOutput = true;
size_t request = writeEstimate.sending(getBuffered());