From 6d93918e12caf0fdc736219598076a80c91ae5fd Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 21 Jan 2009 15:44:42 +0000 Subject: Additional latency measurement points. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@736326 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/OutputInterceptor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/cluster/OutputInterceptor.cpp') 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()); -- cgit v1.2.1